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() {