Documentation
¶
Overview ¶
Package jsonfmt provides a Formatter for JSON files.
The formatter uses github.com/tidwall/pretty for canonical output. JSON has no comments, so comment preservation is not applicable.
Defaults:
- 2-space indentation
- sorted keys
- trailing newline
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOptions ¶
DefaultOptions returns the default formatting options for JSON.
Types ¶
Click to show internal directories.
Click to hide internal directories.