Skip to content

Go

  • Status: Stable
  • Last verified: 2026-08-14
  1. Start from a Go project with go.mod.
  2. Download dependencies: go mod download.
  3. Install the current stable CLI with pnpm add -D @hellmai/lumenflow-cli@latest.
  4. Bootstrap workflow files with pnpm lumenflow.
  5. Run workflow smoke: pnpm wu:prep --id WU-EXAMPLE.
pnpm add -D @hellmai/lumenflow-cli@latest
pnpm lumenflow
pnpm wu:prep --id WU-EXAMPLE
software_delivery:
  gates:
    execution:
      preset: go

Preset commands:

golangci-lint fmt --diff --enable gofmt
golangci-lint run
go vet ./...
go test ./...

lumenflow init writes the preset’s lint and format commands to software_delivery.gates.commands; the matching gates run those commands. Install golangci-lint v2 or later in the Go project before running the gates; v2 introduced the fmt subcommand. In diff mode, formatting differences set exit status 1, so the format gate fails without rewriting source files (official runner).

pnpm wu:prep --id WU-EXAMPLE