MCPcopy Create free account
hub / github.com/tailscale/hujson / Format

Function Format

format.go:46–53  ·  view source on GitHub ↗

Format formats b according to some opinionated heuristics for how HuJSON should look. The exact output may change over time. It is the equivalent of `go fmt` but for HuJSON. If the input is standard JSON, then the output will remain standard. Format is idempotent such that formatting already format

(b []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

processSrcFunction · 0.92

Calls 3

ParseFunction · 0.85
FormatMethod · 0.80
PackMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…