https://github.com/streamdal/go-template
Golang microservice template
https://github.com/streamdal/go-template
Last synced: about 2 months ago
JSON representation
Golang microservice template
- Host: GitHub
- URL: https://github.com/streamdal/go-template
- Owner: streamdal
- Created: 2019-11-23T23:29:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T14:16:45.000Z (over 2 years ago)
- Last Synced: 2025-04-10T23:32:40.909Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 13.2 MB
- Stars: 16
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-template
This is a Golang microservice template.
It uses:
1. `httprouter` for the router
1. `logrus` for logging
1. `envconfig` for env parser
1. `kingpin` for CLI args
----
To use this template:
1. Use Github template to generate new project
1. Replace the strings `go-template` and `GO_TEMPLATE` with preferred `service-name` and `SERVICE_NAME`. Ignore `sed: RE error: illegal byte sequence`
1. `find . -maxdepth 3 -type f -exec sed -i "" 's/go-template/service-name/g' {} \;`
1. `find . -maxdepth 3 -type f -exec sed -i "" 's/GO_TEMPLATE/SERVICE_NAME/g' {} \;`
1. `mv .github.rename .github`