Documentation ¶
Overview ¶
Package printer implements printing of jsonnet AST nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ IndentSize: 2, PadArrays: false, PadObjects: true, SortImports: true, }
DefaultConfig is a default configuration.
Functions ¶
Types ¶
type Config ¶
type Config struct { IndentSize int IndentMode IndentMode PadArrays bool PadObjects bool SortImports bool }
Config is a configuration for the printer.
type IndentMode ¶
type IndentMode int
IndentMode is the indent mode for Config.
const ( // IndentModeSpace indents with spaces. IndentModeSpace IndentMode = iota // IndentModeTab indents with tabs. IndentModeTab )
Click to show internal directories.
Click to hide internal directories.