Skip to content

Load build YAML to Cue inside Golang code #1137

Answered by myitcv
roylisto asked this question in Q&A
Discussion options

You must be logged in to vote

@roylisto the cue.Context methods are for loading CUE. You are looking for https://pkg.go.dev/cuelang.org/[email protected]/encoding/yaml#Extract, the result of which can then be built using cue.Context.BuildFile().

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@roylisto
Comment options

@roylisto
Comment options

@myitcv
Comment options

Answer selected by roylisto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants