Fix type conversion issue with pointers
This commit is contained in:
parent
bec037ce64
commit
74803d86a3
4
vendor/github.com/moul/funcmap/funcmap.go
generated
vendored
4
vendor/github.com/moul/funcmap/funcmap.go
generated
vendored
@ -23,8 +23,8 @@ var FuncMap = template.FuncMap{
|
||||
"split": strings.Split,
|
||||
"join": strings.Join,
|
||||
"title": strings.Title,
|
||||
"unexport": func(v interface{}) string {
|
||||
return fmt.Sprintf("%s%s", strings.ToLower(v.(string)[0:1]), v.(string)[1:])
|
||||
"unexport": func(input string) string {
|
||||
return fmt.Sprintf("%s%s", strings.ToLower(input[0:1]), input[1:])
|
||||
},
|
||||
"lower": strings.ToLower,
|
||||
"upper": strings.ToUpper,
|
||||
|
Loading…
x
Reference in New Issue
Block a user