41

12 factor configuration with Go's `flag` package · Gmarik Inf...

 4 years ago
source link: https://www.gmarik.info/blog/2019/12-factor-golang-flag-package/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Cost-effective way to have your app conform with 12 factor methodology with Go’s stock flag package.Summary Previously, before “cloud” was a thing, it was common to have configuration part of the source code, ie Rails’ config/database.yaml.These days, with immutable infrastucture, separation of configuration and code is preferred; quoting 12 factor:III. Config Store config in the environment An app’s config is everything that is likely to vary between deploys (staging, production, developer environments, etc).

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK