Skip to content

benoahriz/envtoconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.