MCPcopy Create free account
hub / github.com/cloudflare/cfssl / printJSON

Function printJSON

cli/scan/scan.go:27–33  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

25var scanFlags = []string{"list", "family", "scanner", "timeout", "ip", "ca-bundle", "num-workers", "csv", "max-hosts"}
26
27func printJSON(v interface{}) {
28 b, err := json.MarshalIndent(v, "", " ")
29 if err != nil {
30 fmt.Println(err)
31 }
32 fmt.Printf("%s\n\n", b)
33}
34
35type context struct {
36 sync.WaitGroup

Callers 2

runWorkerMethod · 0.85
scanMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…