Documentation
¶
Overview ¶
Package cueutils provides helpers to work with Cue
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Unmarshal ¶
func Unmarshal(configs []CueConfigFile, dir, packageName string, value *cue.Value, target any) error
Given a set of cue files, it will aggregate them into a single cue config and then Unmarshal it unto the given data structure. If dir == "" it will default to the current directory. packageName can be set to _ to load files without a package. Because CUE doesn't support hidden files, hidden files need to be passed as configs. value is a pointer receiver to a cue.Value and can be used on the caller side to print the cue values.
Types ¶
type CueConfigFile ¶
Click to show internal directories.
Click to hide internal directories.