Remove unused template function.
This commit is contained in:
parent
b8d1f97cf5
commit
cd3325054b
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue