Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 804 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 804 Bytes

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.