#string到int
int,err:=strconv.Atoi(string)
#string到int64
int64, err := strconv.ParseInt(string, 10, 64)
#int到string
string:=strconv.Itoa(int)
#int64到string
string:=strconv.FormatInt(int64,10)
结构体转换json
代替:b, _ := json.Marshal(&l) //var dm models.Short _ = json.Unmarshal(b, &dm)
https://github.com/fatih/structs
一个高性能 100% 兼容的“encoding/json”替代品
https://github.com/json-iterator/go