Documentation ¶
Index ¶
Constants ¶
View Source
const NumSpacesPerIndent = 1
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Process uses the hcl2 library to format the hcl file. This will attempt to parse the HCL file first to ensure that there are no syntax errors, before attempting to format it.
func FormatBytes ¶
Types ¶
type Formatter ¶
type Formatter struct { }
func NewFormatter ¶
func NewFormatter() *Formatter
type Tokens ¶
type Tokens []*Token
func (Tokens) Columns ¶
Columns returns the number of columns (grapheme clusters) the token sequence occupies. The result is not meaningful if there are newline or single-line comment tokens in the sequence.
Click to show internal directories.
Click to hide internal directories.