1 Star 0 Fork 12

zhangwei5095/hprose-go

forked from Hprose/hprose-go 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
result_mode.go 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
Hprose 提交于 2015-05-25 22:03 . Changed directory
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* hprose/result_mode.go *
* *
* hprose ResultMode enum for Go. *
* *
* LastModified: May 22, 2015 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
package hprose
// ResultMode is result mode
type ResultMode int
const (
// Normal is default mode
Normal = ResultMode(iota)
// Serialized means the result is serialized
Serialized
// Raw means the result is the raw bytes data
Raw
// RawWithEndTag means the result is the raw bytes data with the end tag
RawWithEndTag
)
func (result_mode ResultMode) String() string {
switch result_mode {
case Normal:
return "Normal"
case Serialized:
return "Serialized"
case Raw:
return "Raw"
case RawWithEndTag:
return "RawWithEndTag"
}
panic("unknown value of ResultMode")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/5095zhangwei/hprose-go.git
git@gitee.com:5095zhangwei/hprose-go.git
5095zhangwei
hprose-go
hprose-go
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385