Skip to content

Commit

Permalink
fix: ModelNamePrivate
Browse files Browse the repository at this point in the history
  • Loading branch information
tioffs committed Feb 4, 2022
1 parent e9186c4 commit 578be5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
for _, message := range file.Proto.GetMessageType() {
if strings.HasSuffix(message.GetName(), *suffix) {
tmpl, err := parseTemplates(&gen{
ModelNamePrivate: strings.ToLower(message.GetName()),
ModelNamePrivate: fmt.Sprintf("%s%s", strings.ToLower(message.GetName()[:1]), message.GetName()[1:]),
ModelName: message.GetName(),
PackageName: string(file.GoPackageName),
PathFile: file.Desc.Path(),
Expand Down

0 comments on commit 578be5a

Please sign in to comment.