Documentation ¶ Index ¶ func Sort(file *hclwrite.File, options SortOptions) (*hclwrite.File, error) type SortOptions Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Sort ¶ func Sort(file *hclwrite.File, options SortOptions) (*hclwrite.File, error) Sort parses the input file, sorts it according to options, and returns a new sorted file object. If no changes are made, the original file object might be returned (or a new identical one). Types ¶ type SortOptions ¶ type SortOptions struct { SortBlocks bool SortTypeName bool } SortOptions defines the sorting behavior. Source Files ¶ View all Source files sorter.go Click to show internal directories. Click to hide internal directories.