12 Star 63 Fork 39

海风 / goctp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
init.go 229 Bytes
一键复制 编辑 原始数据 按行查看 历史
海风 提交于 2022-09-12 18:04 . 更新: v6.6.8封装(全函数)
package goctp
import (
"strings"
"golang.org/x/text/encoding/simplifiedchinese"
)
func Bytes2String(t []byte) string {
msg, _ := simplifiedchinese.GB18030.NewDecoder().Bytes(t)
return strings.Trim(string(msg), "\u0000")
}
Go
1
https://gitee.com/haifengat/goctp.git
git@gitee.com:haifengat/goctp.git
haifengat
goctp
goctp
master

搜索帮助