modern-go-application alternatives and similar packages
Based on the "Project Layout" category.
Alternatively, view modern-go-application alternatives based on common mentions on social networks and blogs.
Set of common historical and emerging project layout patterns in the Go ecosystem.
Scaffold generates starter Go project layout. Lets you focus on business logic implemeted.
Go application GitHub repository template.
1.3 0.0 modern-go-application VS gobaseA simple skeleton for golang application with basic setup for real golang application.
Do you think we are missing an alternative of modern-go-application or a related project?
Modern Go Application
Go application boilerplate and example applying modern practices
This repository tries to collect the best practices of application development using Go language. In addition to the language specific details, it also implements various language independent practices.
Some of the areas Modern Go Application touches:
- package structure
- building the application
- running the application (eg. in Docker)
- developer environment/experience
To help adopting these practices, this repository also serves as a boilerplate for new applications.
- configuration (using spf13/viper)
- logging (using logur.dev/logur and sirupsen/logrus)
- error handling (using emperror.dev/emperror)
- metrics and tracing using Prometheus and Jaeger (via OpenCensus)
- health checks (using AppsFlyer/go-sundheit)
- graceful restart (using cloudflare/tableflip) and shutdown
- support for multiple server/daemon instances (using oklog/run)
- messaging (using ThreeDotsLabs/watermill)
- MySQL database connection (using go-sql-driver/mysql)
Redis connection (using gomodule/redigo)removed due to lack of usage (see [#120](../../issues/120))
To create a new application from the boilerplate clone this repository (if you haven't done already) into your GOPATH then execute the following:
chmod +x init.sh && ./init.sh ? Package name (github.com/sagikazarmark/modern-go-application) ? Project name (modern-go-application) ? Binary name (modern-go-application) ? Service name (modern-go-application) ? Friendly service name (Modern Go Application) ? Update README (Y/n) ? Remove init script (y/N) y
It updates every import path and name in the repository to your project's values. Review and commit the changes.
To test or demonstrate the application it comes with a simple load generation tool. You can use it to test the example endpoints and generate some load (for example in order to fill dashboards with data).
Follow the instructions in [etc/loadgen](etc/loadgen).
See [INSPIRATION.md](INSPIRATION.md) for links to articles, projects, code examples that somehow inspired me while working on this project.
The MIT License (MIT). Please see [License File](LICENSE) for more information.
*Note that all licence references and agreements mentioned in the modern-go-application README section above are relevant to that project's source code only.