PHP » GoLang |
login |
register |
about
|
json_encodejson_encode[code=golang] func Json_encode(data interface{}) (string, error) { jsons, err := json.Marshal(data) return string(jsons), err } [/code] |