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) | The directory of the new application. Accepted as the first positional argument. |
name | string | - | The name of the application. |
tags | string | - | Add tags to the project (used for linting) |
skipFormat | boolean | false | Skip formatting files |
addGoDotWork | boolean | false | Add this project to go.work file |
framework | chi | gin | fiber | gorilla/mux | httprouter | standard-library | echo | (required) | Framework to use |
driver | mysql | postgres | sqlite | mongo | redis | scylla | none | (required) | Database drivers to use |
feature | (react | htmx | githubaction | websocket | tailwind | docker)[] | (prompted) | Advanced feature to use |
git | commit | stage | skip | (required) | Git to use |
- 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.