Init generator
Registers the gonx inference plugin in nx.json and optionally creates a go.work file. 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 | Add a go.work file to the project. |
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.