Go Backend
@codify/go-backend·Codify official·v1.0.0·Updated yesterday
Start writing Go services today instead of spending the afternoon installing linters and debuggers.
0 appliesmacOS · Linux
Apply with CodifyCustomize a copy
Opens the template in the Codify dashboard. Applying doesn't create a setup; customizing makes a private copy you can edit.
Or from your terminal, with the Codify CLI
codify apply @codify/go-backendThis template runs 2 scripts on your machine. The Codify CLI shows you the exact command and asks before anything runs. Read the scripts
Go itself is easy to install. Getting the rest of a working setup together, with a linter, a debugger, live reload and something to handle SQL and migrations, is what usually eats the first day. This template gives you the toolkit most Go teams settle on, with your editor already wired up to use it.
When it's done, goboot-gin (or goboot-fiber) scaffolds a new service and air runs it with live reload while you work.
What gets installed
homebrewjq
aptgit, jq · debian-based
goenv1.23.4 · 1.23.4
aliasgoboot · cgapp create
aliasgoboot-fiber · cgapp create -b fiber
aliasgoboot-gin · cgapp create -b gin
vscodegolang.go
Scripts
Asks before runningaction · go-tools
Condition (runs during plan)
command -v golangci-lint &>/dev/null && command -v dlv &>/dev/null && command -v air &>/dev/null && command -v gopls &>/dev/null && command -v sqlc &>/dev/null && command -v migrate &>/dev/null
Action (runs during apply)
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && go install github.com/go-delve/delve/cmd/dlv@latest && go install github.com/air-verse/air@latest && go install golang.org/x/tools/gopls@latest && go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest && go install github.com/golang-migrate/migrate/v4/cmd/migrate@latest
action · cgapp
Condition (runs during plan)
command -v cgapp &>/dev/null
Action (runs during apply)
go install github.com/create-go-app/cli/v4/cmd/cgapp@latest
Reviews
Write a reviewNo reviews yet. Reviews come from people who applied this template.