MCPcopy Create free account
hub / github.com/edoardottt/pphack / JSONOutput

Function JSONOutput

pkg/output/output.go:49–57  ·  view source on GitHub ↗

JSONOutput marshals and prints the JSON output.

(json *ResultData)

Source from the content-addressed store, hash-verified

47
48// JSONOutput marshals and prints the JSON output.
49func 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}

Callers

nothing calls this directly

Calls 1

FormatJSONFunction · 0.85

Tested by

no test coverage detected