This is full project structure example of article Let's write config for your Golang web app on right way — YAML 👌.
Published on Dev.to @ 13 Feb 2020.
- Go
1.11+
- Go Modules
- Clone this repository and go to folder:
git clone https://github.com/koddr/example-go-config-yaml.git
cd example-go-config-yaml
- Run server (by one of commands below):
# Build server, run tests, collect coverage info and run server:
make
# Only server with default config and without build and coverage info:
make run
# Use your own config file:
go run ./... -config my-config.yml
- For show info about coverage (will open in browser):
make show_coverage
- That's all! 🎉
- Vic Shóstak (aka Koddr).
- Jordan Gregory (aka j4ng5y).
If you want to say «thank you»:
- Twit about article on your Twitter.
- Add a GitHub Star and make Fork to this repository.
- Donate some money to project author via PayPal: @paypal.me/koddr or LiberaPay.
- Join DigitalOcean at my referral link (your profit is $100 and we get $25).
Thanks for your support! 😘
MIT