ignorant_parser

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSectionBody

func GetSectionBody(tokens hclwrite.Tokens) hclwrite.Tokens

Types

type Section

type Section struct {
	Type     string
	Labels   []string
	Value    []hclwrite.Tokens
	Comments hclwrite.Tokens
}

func ParseConfigFromFile

func ParseConfigFromFile(filePath string) ([]*Section, error)

func ParseSectionConfig

func ParseSectionConfig(tokens hclwrite.Tokens) ([]*Section, error)

ParseSectionConfig This method assumes the correctness of the syntax. Use with care

func (*Section) FlattenValue

func (s *Section) FlattenValue() hclwrite.Tokens

func (*Section) HasValue

func (s *Section) HasValue() bool

func (*Section) IsAttribute

func (s *Section) IsAttribute() bool

func (*Section) IsBlock

func (s *Section) IsBlock() bool

func (*Section) IsEmpty

func (s *Section) IsEmpty() bool

func (*Section) IsList

func (s *Section) IsList() bool

func (*Section) LineCounts

func (s *Section) LineCounts() int

func (*Section) ListCount

func (s *Section) ListCount() int

func (*Section) Tokens

func (s *Section) Tokens() hclwrite.Tokens

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL