chore: update goctl interface{} to any (#2819)
* chore: update goctl interface{} to any
* chore: update goctl interface{} to any
This commit is contained in:
@@ -354,7 +354,7 @@ func (g *defaultGenerator) genModelCustom(in parser.Table, withCache bool) (stri
|
||||
t := util.With("model-custom").
|
||||
Parse(text).
|
||||
GoFmt(true)
|
||||
output, err := t.Execute(map[string]interface{}{
|
||||
output, err := t.Execute(map[string]any{
|
||||
"pkg": g.pkg,
|
||||
"withCache": withCache,
|
||||
"upperStartCamelObject": in.Name.ToCamel(),
|
||||
@@ -375,7 +375,7 @@ func (g *defaultGenerator) executeModel(table Table, code *code) (*bytes.Buffer,
|
||||
t := util.With("model").
|
||||
Parse(text).
|
||||
GoFmt(true)
|
||||
output, err := t.Execute(map[string]interface{}{
|
||||
output, err := t.Execute(map[string]any{
|
||||
"pkg": g.pkg,
|
||||
"imports": code.importsCode,
|
||||
"vars": code.varsCode,
|
||||
|
||||
Reference in New Issue
Block a user