example-go-config-yaml
example-go-config-yaml copied to clipboard
Example Go web app with YAML config.
Example Go web app with YAML config
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.
Requirements
- Go
1.11+ - Go Modules
Usage
- 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! 🎉
Author
- Vic Shóstak (aka Koddr).
Code reviewer
- Jordan Gregory (aka j4ng5y).
Article assistance
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! 😘
License
MIT