Skip to content

Commit

Permalink
refactor(cmd/web/enum): 调整 receiver 为小写
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Apr 23, 2024
1 parent 07eafe9 commit 043c3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/web/enum/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 043c3ba

Please sign in to comment.