Go Extension

The @putnami/go extension provides the Go project lifecycle inside a Putnami workspace: toolchain resolution, build, test, lint, serve, packaging, Docker output, and cache-aware dependency handling.

Go projects stay Go-native, but the workflow stays workspace-native.

Extension phases

Phase Start here What it explains
Setup Toolchain & detection How Go projects are detected and how the Go toolchain is resolved
Feedback loop Build, test & lint Compile, test, coverage, golangci-lint, and staticcheck
Local runtime Serve & watch Entrypoint detection, hot reload, and PORT handling
Release artifacts Package & Docker Archives, Docker images, and release packaging
Repeatability Caching & dependencies Cache inputs, go.mod sync, and workspace dependency tracking

Enable the extension

@putnami/go is included by default in new Putnami workspaces. To add it to an existing workspace:

putnami deps add @putnami/go
putnami deps install

External tools

The extension can download the required Go toolchain and lint tools on first use.

Daily loop

putnami test api
putnami serve api
putnami lint,test,build --impacted