-
Configure .vscode/settings.json
{ "go.lintTool":"golangci-lint", "go.lintFlags": [ "--fast" ], "go.lintOnSave": "package", "go.formatTool": "goimports", "go.useLanguageServer": true, "[go]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.organizeImports": true } }, "go.docsTool": "gogetdoc" }
-
Enable githooks
git config core.hooksPath .githooks
-
Create .env file
cp .env.example .env
-
Install reflex
go install github.com/cespare/reflex@latest
-
Configure database settings in config.json
-
reflex -s -r '\.go$$' go run main.go
-
go run main.go