1 Star 0 Fork 1

雅痞 / go-xxljob-executor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
JsonUtils.go 319 Bytes
一键复制 编辑 原始数据 按行查看 历史
fanbeibei 提交于 2022-08-18 15:03 . 恢复
package jsons
import (
"encoding/json"
)
func ToJsonString(o interface{}) string {
data, err := json.Marshal(o)
if err != nil {
return ""
}
return string(data)
}
func JsonStringToObj(jsonStr string, objPoint interface{}) {
err := json.Unmarshal([]byte(jsonStr), objPoint)
if nil != err {
panic(err)
}
}
Go
1
https://gitee.com/YaPi98/go-xxljob-executor.git
git@gitee.com:YaPi98/go-xxljob-executor.git
YaPi98
go-xxljob-executor
go-xxljob-executor
b025b398d5e8

搜索帮助

53164aa7 5694891 3bd8fe86 5694891