From 6eb69d0c9618b71193dd845fdc666b9e529dbd23 Mon Sep 17 00:00:00 2001 From: Azareal Date: Fri, 14 Dec 2018 14:30:13 +1000 Subject: [PATCH] Package time isn't needed in these cases. --- common/templates/templates.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/templates/templates.go b/common/templates/templates.go index ad843723..5ecde011 100644 --- a/common/templates/templates.go +++ b/common/templates/templates.go @@ -953,7 +953,6 @@ ArgLoop: leftParam, _ := c.compileIfVarSub(con, leftOperand) // TODO: Refactor this litString(leftParam+".Format(\"2006-01-02 15:04:05\")", false) - c.importMap["time"] = "time" break ArgLoop case "scope": literal = true @@ -1277,7 +1276,6 @@ func (c *CTemplateSet) compileVarSub(con CContext, varname string, val reflect.V case reflect.Struct: // TODO: Avoid clashing with other packages which have structs named Time if val.Type().Name() == "Time" { - c.importMap["time"] = "time" base = "[]byte(" + varname + ".String())" } else { if !val.IsValid() {