2,190
社区成员
发帖
与我相关
我的任务
分享
func myFunc() {
js, _ := simplejson.LoadBytes([]byte(`{}`))
b := make([]byte, 512)
copy(b, "hello")
s := string(b)
js.Set("msg", s)
b1, _ := js.MarshalJSON()
fmt.Println(string(b1))
}
s := string(b[:5])