Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
524
func
compactJSON(s string) string {
525
var
buf bytes.Buffer
526
json.Compact(&buf, []byte(s))
527
return
buf.String()
528
}
Callers
1
Test_readDirRun
Function · 0.70
Calls
1
String
Method · 0.65
Tested by
no test coverage detected