Scaffolding
Bootstrap Go Projects with gonew
Use the official gonew tool to scaffold new Go projects from a template repository — and a real-world example with template-api
Every Go service I start tends to need the same plumbing: a cmd/ entry point, a Dockerfile, a Taskfile, golangci-lint config, CI workflows, a release pipeline. Copy-pasting from the previous project works, but it gets stale fast. gonew — the official Go scaffolding tool — turns any module into a reusable starting point.