Back to

Package helper

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: MPL-2.0 | Module:


func BoolToPtr

func BoolToPtr(b bool) *bool

boolToPtr returns the pointer to a boolean

func CheckHCLKeys

func CheckHCLKeys(node ast.Node, valid []string) error

func StringToPtr

func StringToPtr(str string) *string

StringToPtr returns the pointer to a string

func TimeToPtr

func TimeToPtr(t time.Duration) *time.Duration

TimeToPtr returns the pointer to a time stamp

func UnusedKeys

func UnusedKeys(obj interface{}) error

UnusedKeys returns a pretty-printed error if any `hcl:",unusedKeys"` is not empty

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

Jump to identifier

Keyboard shortcuts

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