MCPcopy Create free account
hub / github.com/cli/cli / compactJSON

Function compactJSON

pkg/cmd/repo/read-dir/read_dir_test.go:524–528  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

522}
523
524func compactJSON(s string) string {
525 var buf bytes.Buffer
526 json.Compact(&buf, []byte(s))
527 return buf.String()
528}

Callers 1

Test_readDirRunFunction · 0.70

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected