Documentation ¶ Index ¶ func AppendCanonical(dst []byte, doc *ast.Document) ([]byte, error) func AppendPretty(dst []byte, doc *ast.Document, opts Options) ([]byte, error) func CanonicalSize(doc *ast.Document) (int, error) func PrettySize(doc *ast.Document, opts Options) (int, error) type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AppendCanonical ¶ func AppendCanonical(dst []byte, doc *ast.Document) ([]byte, error) func AppendPretty ¶ func AppendPretty(dst []byte, doc *ast.Document, opts Options) ([]byte, error) func CanonicalSize ¶ func CanonicalSize(doc *ast.Document) (int, error) func PrettySize ¶ func PrettySize(doc *ast.Document, opts Options) (int, error) Types ¶ type Options ¶ type Options struct { Indent string } Source Files ¶ View all Source files printer.go Click to show internal directories. Click to hide internal directories.