(v interface{})
| 190 | } |
| 191 | |
| 192 | func ApiResponseJson(v interface{}) (int, string) { |
| 193 | b, err := apiMarshalJson(v) |
| 194 | if err != nil { |
| 195 | return ApiResponseError(errors.Trace(err)) |
| 196 | } else { |
| 197 | return 200, string(b) |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | func EncodeURL(host string, format string, args ...interface{}) string { |
| 202 | var u url.URL |
nothing calls this directly
no test coverage detected