showmax / env Goto Github PK
View Code? Open in Web Editor NEWLoading of configuration from environment variables done right.
License: Other
Loading of configuration from environment variables done right.
License: Other
If I would like to add my custom parser I can't!
The env.loader
has AddParser
method what is unused and imposible to call from outside.
Because env.loader
instance is unexported I can create it on my own.
The only instance of env.loader
is created by env.newLoader
function what is unexported as well.
And the instance is created in env.Load
function what is the only thing what is exported from the package at all.
I don't see a point why that (env.loader#AddParser) code even exists if it's unused and unreachable.
The parser ignores if parsed value is "overflowing" file mode range.
https://play.golang.org/p/XhOFdvb44WY
It can be used to setup the first column
If I try to load url.URL
variable then I get no error but variable isn't loaded.
example here: https://play.golang.org/p/ecdDsQLWN4X
url.URL
should be supported by README
https://github.com/Showmax/env#list-of-default-parsers
The broken "github.com/kelseyhightower/envconfig" works fine here: https://play.golang.org/p/lywLmgyGDc1
If there are no map values, package does not return any error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.