Skip to content

load.Instances with string literal CUE content #3170

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

You must be logged in to vote

Hi @dghubble - I've moved your issue to be a discussion in the Q&A category.

For an example of how to load CUE via the Go API please see https://cuelang.org/docs/tutorial/loading-cue-go-api/.

If you wanted to augment what is on disk with more data, you could use an Overlay as part of a https://pkg.go.dev/cuelang.org/go/cue/load#Config value that is passed to load.Instances.

Would that cover your use case?

Happy to create an example of this for cuelang.org if that would be of help.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@myitcv
Comment options

Answer selected by dghubble
@myitcv
Comment options

@dghubble
Comment options

@myitcv
Comment options

@dghubble
Comment options

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
Converted from issue

This discussion was converted from issue #3164 on May 23, 2024 13:49.