parser

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseModuleFile added in v0.32.0

func ParseModuleFile(fs FS, filePath string) (*hcl.File, hcl.Diagnostics, error)

func ParseModuleFiles

func ParseModuleFiles(fs FS, modPath string) (ast.ModFiles, ast.ModDiags, error)

func ParseVariableFile added in v0.32.0

func ParseVariableFile(fs FS, filePath string) (*hcl.File, hcl.Diagnostics, error)

func ParseVariableFiles

func ParseVariableFiles(fs FS, modPath string) (ast.VarsFiles, ast.VarsDiags, error)

Types

type FS

type FS interface {
	fs.FS
	ReadDir(name string) ([]fs.DirEntry, error)
	ReadFile(name string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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