Skip to content

Init generator

Registers the gonx inference plugin in nx.json and optionally creates a go.work file. Hidden from nx list and invoked automatically by the other generators.

nx g @naxodev/gonx:init
OptionTypeDefaultDescription
skipFormatbooleanfalseSkip formatting files.
addGoDotWorkbooleanfalseCreate a go.work file and add Go config to shared globals.
  • go.work creation requires a locally installed Go toolchain that supports Go workspaces.
  • Invoked by the application, library, and go-blueprint generators (and indirectly by the preset generator) with skipFormat: true.