kelseyhightower / envconfig

Golang library for managing configuration data from environment variables
MIT License
5.01k stars 377 forks source link

add 'upper' struct tag #182

Closed erkanzileli closed 1 year ago

erkanzileli commented 3 years ago

The goal is I have some lower-cased environment variables that I can not change them because they have been used for many applications and also I want to use envconfig library which is so simple and useful I think. This PR is so useful for me maybe also for the whole community.

Usage It works only when you pass a struct tag upper as false. Otherwise there no thing to change on current usage. When we pass upper as false, envconfig stops the looking for upper-cased environment variables.