envstruct's People
envstruct's Issues
Improve performance.
Improve performance, use lower memory, Greater code organized.
Array type support
Make support array type
Option OS environment first
Gives more importance to the OS environment
Bug : If have any error in process prepare Variable Pointer Data won't set.
Read YAML
Can read and parse .yaml file
Sub struct in struct
Make support struct type
Option Read All
Read All in file and put to OS environment if name of env not in struct of variable pointer
Over ride OS environment
Over ride os environment if have same name with env file.
Custom Parser function
Add Custom Parser Function In Option
Read json file.
Bug : If open only "Put to os" And "Read all" will not working.
Bug : If open only "Put to os" And "Read all" will not working.
Example:
.env
test="test1"
test2="test3"
opt := Options{
PutToOs: true,
ReadAll: true,
}
if err := Setup(opt); len(err) != 0 {
fmt.Println(err)
}
fmt.Println(os.Getenv("test")) // empty
fmt.Println(os.Getenv("test2")) // empty
Because osenv.go parserOSEnv function work with "for" only already in os.env.
for _, v := range osenv {
Add Option OS First
If have os.env and env file will choose os.env
Put to OS environment
Put read value from env file to os environment
Read OS Environment to Variable
Add option ReadOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.