ast.Node to cue.Value
#3122
-
Is there a method to get cue.Value from ast.Node? |
Beta Was this translation helpful? Give feedback.
Answered by
mvdan
May 7, 2024
Replies: 1 comment 1 reply
-
You want either https://pkg.go.dev/cuelang.org/[email protected]/cue#Context.BuildExpr or https://pkg.go.dev/cuelang.org/[email protected]/cue#Context.BuildFile. Those mirror the types returned from the parsing APIs at https://pkg.go.dev/cuelang.org/go/cue/parser. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dcb1001
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want either https://pkg.go.dev/cuelang.org/[email protected]/cue#Context.BuildExpr or https://pkg.go.dev/cuelang.org/[email protected]/cue#Context.BuildFile. Those mirror the types returned from the parsing APIs at https://pkg.go.dev/cuelang.org/go/cue/parser.