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
Configuration
The exact file codify apply uses. Copy it into your own codify.jsonc, or download it.
codify.jsonc75 lines · 2.1 KB
[ // ### Go backend environment // // Eseentials for Go backend development // // Includes: Go 1.23, linters, debugger, hot-reload, and project scaffolding via `goboot` (aliases for create-go-app) { "type": "homebrew", "formulae": ["jq"], "os": ["macOS"] }, { "type": "apt", "install": ["git", "jq"], "os": ["linux"], "distro": ["debian-based"] }, { "type": "goenv", "goVersions": ["1.23.4"], "global": "1.23.4" }, { "type": "action",Runs a script · asks first "name": "go-tools", "condition": "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": "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", "dependsOn": ["goenv"] }, { "type": "action",Runs a script · asks first "name": "cgapp", "condition": "command -v cgapp &>/dev/null", "action": "go install github.com/create-go-app/cli/v4/cmd/cgapp@latest", "dependsOn": ["goenv"] }, // Aliases for bootstrapping Go projects with cgapp { "type": "alias", "name": "cgapp-create", "alias": "goboot", "value": "cgapp create", "dependsOn": ["action.cgapp"] }, { "type": "alias", "name": "cgapp-create-fiber", "alias": "goboot-fiber", "value": "cgapp create -b fiber", "dependsOn": ["action.cgapp"] }, { "type": "alias", "name": "cgapp-create-gin", "alias": "goboot-gin", "value": "cgapp create -b gin", "dependsOn": ["action.cgapp"] }, { "type": "vscode", "extensions": [ "golang.go", ], "settings": { "go.lintTool": "golangci-lint", "go.useLanguageServer": true, "editor.formatOnSave": true, "[go]": { "editor.codeActionsOnSave": { "source.organizeImports": "explicit", }, }, } }]