Back to

Package utilities

Latest Go to latest

The highest tagged major version is .

Published: Feb 21, 2019 | License: MIT | Module:


func CheckForRequiredFields

func CheckForRequiredFields(metadata *mapstructure.Metadata, requiredFields []string) error

CheckForRequiredFields checks that there exists a field for each field in requiredFields.

func GetObjectList

func GetObjectList(f *ast.File) (*ast.ObjectList, bool)

func LoadFileHcl

func LoadFileHcl(root string) (*ast.File, error)

LoadFileHcl reads a file into a Configurable object

func LoadStringHcl

func LoadStringHcl(d string) (*ast.File, error)

LoadFileHcl reads a string into a Configurable object

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier