MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / newFormattedEncoder

Function newFormattedEncoder

diagnostic/diagnostic_utils.go:144–148  ·  view source on GitHub ↗

newFormattedEncoder return a JSON encoder with identation

(w io.Writer)

Source from the content-addressed store, hash-verified

142
143// newFormattedEncoder return a JSON encoder with identation
144func newFormattedEncoder(w io.Writer) *json.Encoder {
145 encoder := json.NewEncoder(w)
146 encoder.SetIndent("", " ")
147 return encoder
148}

Callers 5

collectPrechecksFunction · 0.85
createTaskReportFunction · 0.85
copyJSONToWriterFunction · 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…