diff --git a/cmd/web/enum/type.go b/cmd/web/enum/type.go index 8e17fe03..d632271b 100644 --- a/cmd/web/enum/type.go +++ b/cmd/web/enum/type.go @@ -52,7 +52,7 @@ func newEnum(t string, vals ...string) *enum { return &enum{ Name: t, Values: values, - Receiver: string(t[0]), + Receiver: strings.ToLower(string(t[0])), Type2StringMap: "_" + t + "ToString", String2TypeMap: "_" + t + "FromString",