Remove unused template function.

This commit is contained in:
go-jet 2020-06-01 17:21:52 +02:00
parent b8d1f97cf5
commit cd3325054b

View file

@ -8,7 +8,6 @@ import (
"github.com/go-jet/jet/internal/utils" "github.com/go-jet/jet/internal/utils"
"path/filepath" "path/filepath"
"text/template" "text/template"
"time"
) )
// GenerateFiles generates Go files from tables and enums metadata // GenerateFiles generates Go files from tables and enums metadata
@ -84,9 +83,6 @@ func GenerateTemplate(templateText string, templateData interface{}, dialect jet
t, err := template.New("sqlBuilderTableTemplate").Funcs(template.FuncMap{ t, err := template.New("sqlBuilderTableTemplate").Funcs(template.FuncMap{
"ToGoIdentifier": utils.ToGoIdentifier, "ToGoIdentifier": utils.ToGoIdentifier,
"ToGoEnumValueIdentifier": utils.ToGoEnumValueIdentifier, "ToGoEnumValueIdentifier": utils.ToGoEnumValueIdentifier,
"now": func() string {
return time.Now().Format(time.RFC850)
},
"dialect": func() jet.Dialect { "dialect": func() jet.Dialect {
return dialect return dialect
}, },