0xsimulacra / go-template

Template for Go projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-template

Goreport status Test status

Toolbox for new Go projects!

Pick and choose whatever is useful to you! Don't feel the need to use everything, or even to follow this structure.


Getting started

Build CLI

make build-cli

Build HTTP server

make build-httpserver

Install dev dependencies

go install mvdan.cc/gofumpt@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install github.com/daixiang0/gci@latest

Lint, test, format

make lint
make test
make fmt

About

Template for Go projects


Languages

Language:Go 78.4%Language:Makefile 12.8%Language:Dockerfile 8.8%