init a gin project.
- use
zapas logger - use
viperto read config.yaml - set healthcheck router
- add unittest for healthcheck router
some config, such as db config or password, cannot upload to github or other online website. so we need read from OS.ENV.
- read config from
config.yaml - read config from
OS.ENV
the name of config in os must be SCREAMING_SNAKE_CASE. such as: the name of config.AppName in os is APP_NAME.
cd test
go test -v -run TestHealthcheckRoute