1 Star 0 Fork 0

毕升Office / go-socket.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
frame.go 357 Bytes
一键复制 编辑 原始数据 按行查看 历史
Saimon Shaplygin 提交于 2021-05-05 21:34 . ref: migrate
package frame
// Type is the type of frames.
type Type byte
const (
// String identifies a string frame.
String Type = iota
// Binary identifies a binary frame.
Binary
)
// ByteToFrameType converts a byte to FrameType.
func ByteToFrameType(b byte) Type {
return Type(b)
}
// Byte returns type in byte.
func (t Type) Byte() byte {
return byte(t)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ibisheng/go-socket.io.git
git@gitee.com:ibisheng/go-socket.io.git
ibisheng
go-socket.io
go-socket.io
f22f23ac6ef8

搜索帮助

344bd9b3 5694891 D2dac590 5694891