utilities

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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