Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Simple env to conf files

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages