MCPcopy Index your code
hub / github.com/kopia/kopia / cleanupForJSON

Method cleanupForJSON

cli/json_output.go:55–64  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

53}
54
55func (c *jsonOutput) cleanupForJSON(v any) any {
56 switch v := v.(type) {
57 case *snapshot.Manifest:
58 return c.cleanupSnapshotManifestForJSON(v)
59 case []*snapshot.Manifest:
60 return c.cleanupSnapshotManifestListForJSON(v)
61 default:
62 return v
63 }
64}
65
66func (c *jsonOutput) jsonBytes(v any) []byte {
67 return c.jsonIndentedBytes(v, "")

Callers 1

jsonIndentedBytesMethod · 0.95

Tested by

no test coverage detected