2021-10-11 21:43:36 +08:00

9 lines
123 B
Go

package common
import "encoding/json"
func ToJson(v interface{}) string {
bs, _ := json.Marshal(v)
return string(bs)
}