summaryrefslogtreecommitdiff
path: root/context.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2018-02-18 23:25:43 -0500
committerDave Henderson <dhenderson@gmail.com>2018-04-18 15:23:49 -0400
commit0ff06aa75c6a3062852f08c0ae73751530ede6c3 (patch)
tree01002e4c015ee950f3b63c6584ebb8462eaf9b87 /context.go
parentcd60ef2d97a45135f3b4127ea0038db5a4ffe847 (diff)
Putting main pkg in cmd subdirectory
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'context.go')
-rw-r--r--context.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/context.go b/context.go
index 939883ea..6c100dfb 100644
--- a/context.go
+++ b/context.go
@@ -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, "=")