- gin as http framework
- gorm-v2 as ORM
- go-fractal as data transformer
- go-hashids as numerical ID obfuscation
Command | Description | Launch |
---|---|---|
develop:test | Testable command | manually |
database:migrations:migrate | Apply migrations | manually |
database:migrations:rollback | Rollback migrations | manually |
database:seeders:seed | Seed dev data to DB | manually |
database:seeders:clear | Clear dev data | manually |
app:start | API WebServer launch | manually |
- ./golang-api-skeleton {command} - simple launch
- ./golang-api-skeleton {command} -config=./config.yml - launch with args
go test --coverprofile=coverage.out ./... && go tool cover -func coverage.out && go tool cover --html=coverage.out -o coverage.html