Users design by filling in the schema for a Hof Generator.
Server, @gen(server)
This is the block which defines an entrypoint to hof gen,
using @gen(tags...) and unifying with our generator gen.Generator.
examples/gen.cue
packageexamplesimport ("hof.io/docs/example/gen")// A runnable generator (@gen(<name>))Generator: gen.Generator & { @gen(server) Outdir: "./output"// ModuleName: "hof.io/docs/example"// Needed because we are using the generator from within it's directory// Normally, users will not see or set this field ModuleName: ""// We write the details in a separate file "Server": Server}
ServerDesign, with the schema
This is the user created design for our server generator.