Skip to content

Commit

Permalink
fix: remove pointer receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellysonrp committed Sep 27, 2022
1 parent c8b1dd8 commit d7a7901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import (

messageTemplate = template.Must(template.New("message").Parse(`
// MarshalJSON implements json.Marshaler
func (msg *{{.GoIdent.GoName}}) MarshalJSON() ([]byte,error) {
func (msg {{.GoIdent.GoName}}) MarshalJSON() ([]byte,error) {
return protojson.MarshalOptions {
UseEnumNumbers: {{.EnumsAsInts}},
EmitUnpopulated: {{.EmitDefaults}},
Expand Down

0 comments on commit d7a7901

Please sign in to comment.