1
This commit is contained in:
parent
4f7255c731
commit
06880e9f72
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user