Categorygithub.com/kachit/golang-api-skeleton
modulepackage
0.0.0-20230730082112-da3856f7c0be
Repository: https://github.com/kachit/golang-api-skeleton.git
Documentation: pkg.go.dev

# README

Golang Rest API skeleton

Build Status Codecov Go Report Card Version License

Uses:

  • gin as http framework
  • gorm-v2 as ORM
  • go-fractal as data transformer
  • go-hashids as numerical ID obfuscation

Commands list:

CommandDescriptionLaunch
develop:testTestable commandmanually
database:migrations:migrateApply migrationsmanually
database:migrations:rollbackRollback migrationsmanually
database:seeders:seedSeed dev data to DBmanually
database:seeders:clearClear dev datamanually
app:startAPI WebServer launchmanually

Launch

  • ./golang-api-skeleton {command} - simple launch
  • ./golang-api-skeleton {command} -config=./config.yml - launch with args

Testing

go test --coverprofile=coverage.out ./... && go tool cover -func coverage.out && go tool cover --html=coverage.out -o coverage.html

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author