forked from Plemya-x/ALR
Initial commit
This commit is contained in:
13
pkg/gen/funcs.go
Normal file
13
pkg/gen/funcs.go
Normal file
@ -0,0 +1,13 @@
|
||||
package gen
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"text/template"
|
||||
)
|
||||
|
||||
var funcs = template.FuncMap{
|
||||
"tolower": strings.ToLower,
|
||||
"firstchar": func(s string) string {
|
||||
return s[:1]
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user