MCPcopy
hub / github.com/slimtoolkit/slim / StringJSONPretty

Method StringJSONPretty

pkg/sysidentity/sysidentity.go:198–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196}
197
198func (ref *Report) StringJSONPretty() string {
199 var out bytes.Buffer
200 encoder := json.NewEncoder(&out)
201 encoder.SetEscapeHTML(false)
202 encoder.SetIndent(" ", " ")
203 _ = encoder.Encode(ref)
204 return out.String()
205}
206
207type GroupInfo struct {
208 Name string `json:"name"`

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected