Back to godoc.org

Package utilities

v0.1.2
Latest Go to latest

The highest tagged major version is .

Published: Feb 21, 2019 | License: MIT | Module: github.com/samhug/ndm

Index

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