Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

How to inject go struct into cue build instance? #710

Answered by mpvl
joscha-alisch asked this question in Q&A
Discussion options

You must be logged in to vote

The API could be improved. But from gocodec you can get a cue.Value, which has a Syntax method to get an AST, from which you can get a File using astutil.ToFile.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@joscha-alisch
Comment options

Answer selected by joscha-alisch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants