Skip to content

Commit

Permalink
StrSplit func to upper
Browse files Browse the repository at this point in the history
  • Loading branch information
otabek committed May 27, 2024
1 parent 68b33ab commit b9f5f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codegen/templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func Funcs() template.FuncMap {
"call": Call,
"prefixLines": prefixLines,
"notNil": notNil,
"stringsSplit": stringsSplit,
"strSplit": StrSplit,
"reserveImport": CurrentImports.Reserve,
"lookupImport": CurrentImports.Lookup,
"go": ToGo,
Expand Down Expand Up @@ -582,7 +582,7 @@ func notNil(field string, data any) bool {
return val.IsValid() && !val.IsNil()
}

func stringsSplit(s, sep string) []string {
func StrSplit(s, sep string) []string {
return strings.Split(s, sep)
}

Expand Down

0 comments on commit b9f5f23

Please sign in to comment.