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

Method Format

format.go:73–89  ·  view source on GitHub ↗

Format formats the value 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 alread

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestFormatFunction · 0.80
FuzzFunction · 0.80
FormatFunction · 0.80

Calls 8

IsStandardMethod · 0.95
normalizeMethod · 0.95
expandCompositesMethod · 0.95
formatWhitespaceMethod · 0.95
alignObjectValuesMethod · 0.95
UpdateOffsetsMethod · 0.95
consumeWhitespaceFunction · 0.85
formatMethod · 0.80

Tested by 2

TestFormatFunction · 0.64
FuzzFunction · 0.64