(t interface{})
| 48 | } |
| 49 | |
| 50 | func printJSON(t interface{}) error { |
| 51 | b, err := json.MarshalIndent(t, "", " ") |
| 52 | if err != nil { |
| 53 | fmt.Println("{}") |
| 54 | return err |
| 55 | } |
| 56 | fmt.Println(string(b)) |
| 57 | return nil |
| 58 | } |
| 59 | |
| 60 | // Send a JSON response after a local action. |
| 61 | func sendResponse(msg string, err error) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…