This is the Linux app named env whose latest release can be downloaded as v7.1.0.zip. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named env with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
SCREENSHOTS
Ad
env
DESCRIPTION
Parse environment variables to structs in Go. In Go, it’s dead simple to get the value from an environment variable. If you have a type that is not supported out of the box by the lib, you are able to use (or define) and pass custom parsers (and their associated reflect.Type) to the env.ParseWithFuncs() function. Env supports by default anything that implements the TextUnmarshaler interface. That includes things like time.Time for example. The upside is that depending on the format you need, you don't need to change anything. The downside is that if you do need time in another format, you'll need to create your own type. By default, slice types will split the environment value on ,; you can change this behavior by setting the envSeparator tag. If you set the envExpand tag, environment variables (either in ${var} or $var format) in the string will be replaced according with the actual value of the variable.
Features
- Check the examples in the go doc for more info
- Pointers, slices and slices of pointers of those types are also supported
- You can also use/define a custom parser func for any other type you want
- If you set the envDefault tag for something, this value will be used in the case of absence of it in the environment
- By default, slice types will split the environment value on ,; you can change this behavior by setting the envSeparator tag
- Env supports by default anything that implements the TextUnmarshaler interface
Programming Language
Go
Categories
This is an application that can also be fetched from https://sourceforge.net/projects/env.mirror/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.