2023-10-10 20:38:39 +00:00
|
|
|
package gen
|
|
|
|
|
2023-10-10 20:51:40 +00:00
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
"text/template"
|
|
|
|
)
|
2023-10-10 20:38:39 +00:00
|
|
|
|
|
|
|
var funcs = template.FuncMap{
|
2023-10-10 20:51:40 +00:00
|
|
|
"tolower": strings.ToLower,
|
2023-10-10 20:38:39 +00:00
|
|
|
"firstchar": func(s string) string {
|
|
|
|
return s[:1]
|
|
|
|
},
|
|
|
|
}
|