JSONOutput marshals and prints the JSON output.
(json *ResultData)
| 47 | |
| 48 | // JSONOutput marshals and prints the JSON output. |
| 49 | func JSONOutput(json *ResultData) { |
| 50 | data, err := FormatJSON(json) |
| 51 | if err != nil { |
| 52 | gologger.Error().Msg(err.Error()) |
| 53 | return |
| 54 | } |
| 55 | |
| 56 | fmt.Println(string(data)) |
| 57 | } |
nothing calls this directly
no test coverage detected