API Boilerplate to start a project using golang
- GO >= 1.13
Install dependencies:
go mod download
How to add a new service:
- Add a file in
server/service
, with at least a Struct, and a Provider - Add the Service and the Struct in
server/service_container.go
- (optionnal) Run
go generate
to update the dependency injection. This should be run whenevermake
is run
Packages used:
- router: chi & render
- logger: zap
- database: pq, sqlx
- dependency injection: wire
- static file injection: go-bindata
- command line tool: cobra
- config tool: viper
- tests: testify
- json schema: gojsonschema
id generation: xid ?