The Wayback Machine - https://web.archive.org/web/20201017215301/https://github.com/benoahriz/envtoconf
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

envtoconf

Go Report Card

Striving to be a simple env program to process go templates primarily used for docker containers to read environment variables at runtime. The funcMap() for the template processor comes from sprig which gives you all kinds of functions if you wish to use them.

Below is some exmaples of using environment variables in a template.

home is :{{ env "HOME" }} endhome.
path is :{{ expandenv "Your path is set to $PATH" }} endpath.

TODO:

Create tests for malformed template Write article about going from an idea to production in golang. Create option for required vars strict mode.

About

Simple env to conf files

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.