Go (Golang) API REST with Gin Framework
- Build
make build
docker build . -t api-rest
- Run
docker run -p 3000:3000 api-rest
- Test
go test -v ./test/...
# Get swag
go get -u github.com/swaggo/swag/cmd/swag
# Generate docs
export PATH=$(go env GOPATH)/bin:$PATH
swag init --dir cmd/api --parseDependency --output docs
Run and go to http://localhost:3000/docs/index.html