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
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
| skipFormat | boolean | false | Skip formatting files. |
| addGoDotWork | boolean | false | Create a go.work file and add Go config to shared globals. |
go.workcreation 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.