go-template
go-template copied to clipboard
Golang microservice template
go-template
This is a Golang microservice template.
It uses:
-
httprouter
for the router -
logrus
for logging -
envconfig
for env parser -
kingpin
for CLI args
To use this template:
- Use Github template to generate new project
- Replace the strings
go-template
andGO_TEMPLATE
with preferredservice-name
andSERVICE_NAME
. Ignoresed: RE error: illegal byte sequence
-
find . -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
-