MCPcopy Create free account
hub / github.com/ProspectOne/perfops-cli / PrintOutputJSON

Function PrintOutputJSON

cmd/internal/runtest.go:257–264  ·  view source on GitHub ↗

PrintOutputJSON marshals the output into JSON and prints the JSON.

(output interface{})

Source from the content-addressed store, hash-verified

255
256// PrintOutputJSON marshals the output into JSON and prints the JSON.
257func PrintOutputJSON(output interface{}) error {
258 b, err := json.Marshal(output)
259 if err != nil {
260 return err
261 }
262 fmt.Println(string(b))
263 return nil
264}
265
266// NewFormatter returns a new Formatter
267func NewFormatter(printID bool) *Formatter {

Callers 6

runCitiesCmdFunction · 0.92
runDNSPerfFunction · 0.92
runCountriesCmdFunction · 0.92
runCurlFunction · 0.92
runDNSResolveFunction · 0.92
RunTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected