bump version
This commit is contained in:
parent
f31dc5df92
commit
2f6b32b1f5
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue