GoLang alternatives for PHP functions
[code=golang] func Json_encode(data interface{}) (string, error) { jsons, err := json.Marshal(data) return string(jsons), err } [/code]