diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-02-18 23:25:43 -0500 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2018-04-18 15:23:49 -0400 |
| commit | 0ff06aa75c6a3062852f08c0ae73751530ede6c3 (patch) | |
| tree | 01002e4c015ee950f3b63c6584ebb8462eaf9b87 /context.go | |
| parent | cd60ef2d97a45135f3b4127ea0038db5a4ffe847 (diff) | |
Putting main pkg in cmd subdirectory
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'context.go')
| -rw-r--r-- | context.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,16 +1,16 @@ -package main +package gomplate import ( "os" "strings" ) -// Context for templates -type Context struct { +// context for templates +type context struct { } // Env - Map environment variables for use in a template -func (c *Context) Env() map[string]string { +func (c *context) Env() map[string]string { env := make(map[string]string) for _, i := range os.Environ() { sep := strings.Index(i, "=") |
