This commit is contained in:
aozhiwei 2024-05-09 13:24:10 +08:00
parent 4f7255c731
commit 06880e9f72

View File

@ -69,6 +69,11 @@ func EncodeJson(p interface{}) string {
}
}
func DecodeJson(data string, p interface{}) error {
err := json.Unmarshal([]byte(data), &p)
return err
}
func StrSplit(s string, sep string) []string {
return strings.Split(s, sep)
}