Skip to content
/ go-gin-starter Public template

Opinionated Go starter with gin for REST API, logrus for logging, viper for config with added graceful shutdown

License

Notifications You must be signed in to change notification settings

udaya2899/go-gin-starter

Repository files navigation

go-gin-starter

build Go Reference made-with-Go

license

stars

An opinionated starter for Go Backend projects using:

  • gin-gonic/gin as the REST framework
  • logrus for logging
  • viper for configs
  • Docker for containerization

To be added:

  • sqlc for type-safe SQL Go code generation
  • golang-migrate/migrate for migration
  • jwt authentication
  • casbin authorization
  • prometheus monitoring

Docker support

Run make docker-build-run to build the command and run the container. Note that the port is set as 8080 by default.

Verify by checking localhost:8080/ping. You should receive a pong

Contributing

Feel free to raise a PR with one of the features from "To be added" section.

If you want a new feature PR, raise an issue to discuss about it.

About

Opinionated Go starter with gin for REST API, logrus for logging, viper for config with added graceful shutdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published