go-template
go-template copied to clipboard
Golang microservice template
go-template
This is a Golang microservice template.
It uses:
httprouterfor the routerlogrusfor loggingenvconfigfor env parserkingpinfor CLI args
To use this template:
- Use Github template to generate new project
- Replace the strings
go-templateandGO_TEMPLATEwith preferredservice-nameandSERVICE_NAME. Ignoresed: RE error: illegal byte sequencefind . -maxdepth 3 -type f -exec sed -i "" 's/go-template/service-name/g' {} \;find . -maxdepth 3 -type f -exec sed -i "" 's/GO_TEMPLATE/SERVICE_NAME/g' {} \;mv .github.rename .github