Code Gen



There are several types of “code gen” in relation to CUE

Configuration or data (yaml,json)

  • Export: CUE -> data (cue export)
  • Import: data -> CUE (cue import)

Language types:

  • Get Go: Go -> CUE (cue get go)
  • TypeGen: CUE -> Go (… custom …)

Some notes:

(1) CUE only has support for importing Go right now

(2) CUE only imports types from Go

(3) CUE does not have functions, so we cannot represent those in CUE without a DSL


We'll never share your email with anyone else.
2024 Hofstadter, Inc