14 Star 51 Fork 12

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")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/andot/hprose-go.git
git@gitee.com:andot/hprose-go.git
andot
hprose-go
hprose-go
v1.5.1

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385