README ¶ go-rest-template Go (Golang) API REST Template/Boilerplate with Gin Framework 1. Run with Docker Build make build docker build . -t api-rest Run docker run -p 3000:3000 api-rest Test go test -v ./test/... 2. Generate Docs # Get swag go get -u github.com/swaggo/swag/cmd/swag # Generate docs swag init --dir cmd/api --parseDependency --output docs Run and go to http://localhost:3000/docs/index.html Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis cmd api docs internal api api/controllers api/middlewares api/router pkg/config pkg/db pkg/models pkg/models/media pkg/models/tags pkg/persistence pkg crypto helpers http-err Click to show internal directories. Click to hide internal directories.