envtoconf

command module
v0.0.0-...-72d212e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2017 License: MIT Imports: 8 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL