marshal.go 138 B

12345678
  1. package test
  2. import "encoding/json"
  3. func MarshalResponse(data interface{}) string {
  4. res, _ := json.Marshal(data)
  5. return string(res)
  6. }