bump version

This commit is contained in:
Andrea Maria Piana 2021-07-16 20:07:43 +02:00
parent f31dc5df92
commit 2f6b32b1f5
2 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
0.81.0 0.82.0

View file

@ -5,8 +5,8 @@ import (
"unicode" "unicode"
) )
// formatName converts to first character of name to lowercase. // firstCharToLower converts to first character of name to lowercase.
func formatName(name string) string { func firstCharToLower(name string) string {
ret := []rune(name) ret := []rune(name)
if len(ret) > 0 { if len(ret) > 0 {
ret[0] = unicode.ToLower(ret[0]) ret[0] = unicode.ToLower(ret[0])
@ -24,7 +24,7 @@ func addSuitableCallbacks(receiver reflect.Value, namespace string, methods map[
if method.PkgPath != "" { if method.PkgPath != "" {
continue // method not exported continue // method not exported
} }
name := formatName(method.Name) name := firstCharToLower(method.Name)
methods[namespace+"_"+name] = true methods[namespace+"_"+name] = true
} }
} }