Go Blueprint generator
Generates a Go application by wrapping the @melkeydev/go-blueprint CLI, which is bundled with this package. Scaffolds a project from a selected web framework, database driver, and optional advanced features.
nx g @naxodev/gonx:go-blueprint <directory>
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
| directory | string | required | Directory of the new application. Taken from the first positional argument. |
| name | string | - | Name of the application. Must match ^[a-zA-Z][^:]*$. |
| tags | string | - | Tags to add to the project (used for linting). |
| skipFormat | boolean | false | Skip formatting files. |
| addGoDotWork | boolean | false | Add this project to go.work. |
| framework | chi | gin | fiber | gorilla/mux | httprouter | standard-library | echo | required | Web framework. |
| driver | mysql | postgres | sqlite | mongo | redis | scylla | none | required | Database driver. |
| git | commit | stage | skip | required | Git handling. |
| feature | array | - | Advanced features: react, htmx, githubaction, websocket, tailwind, docker. |
- The
@melkeydev/go-blueprintbinary is resolved from the bundled npm dependency; no separate installation is required. - Runs the init generator first to register the inference plugin. Adds the project to
go.workwhenaddGoDotWorkis set and a Go workspace is supported. - Removes
.air.toml,README.md, andMakefilefrom the generated output. - The
reactfeature embeds frontend code inside the Go project directory, which Nx’s project graph does not detect as a separate project. - Inferred targets for the resulting application:
build,serve,test,lint,tidy,generate,nx-release-publish.