MCPcopy Index your code
hub / github.com/docker/cli / NewJSONInspector

Function NewJSONInspector

cli/command/inspect/inspector.go:176–185  ·  view source on GitHub ↗

NewJSONInspector generates a new inspector with a compact representation of elements.

(out io.Writer)

Source from the content-addressed store, hash-verified

174// NewJSONInspector generates a new inspector with a compact representation
175// of elements.
176func NewJSONInspector(out io.Writer) Inspector {
177 if out == nil {
178 out = io.Discard
179 }
180 return &jsonInspector{
181 out: out,
182 raw: json.Compact,
183 el: json.Marshal,
184 }
185}
186
187type jsonInspector struct {
188 out io.Writer

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…