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

Embedding in golang #992

Answered by eonpatapon
rajrahul asked this question in Q&A
May 21, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

To use builtins you just need to import them in your go code like that:

import (
  _ "cuelang.org/go/pkg"
)

For managing imports of custom modules you will need to use load.Instances instead of Runtime.Compile.

Replies: 2 comments 3 replies

Comment options

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

@verdverm
Comment options

@myitcv
Comment options

Answer selected by rajrahul
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
5 participants