Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gogrpcmock plugin appends a '_' to field size #93

Closed
chenliu1993 opened this issue Mar 14, 2022 · 1 comment
Closed

gogrpcmock plugin appends a '_' to field size #93

chenliu1993 opened this issue Mar 14, 2022 · 1 comment

Comments

@chenliu1993
Copy link

My message is defined like this:
message xxx { string name = 1; uint64 size = 2; string uuid = 3; ... }
And I generate the mock through
--gogrpcmock_out=. --gogrpcmock_opt=paths=source_relative
the *.mock.go can be generated but the field 'Size' is always in th form of 'Size_' which lead to an error like
unknown field Size_ in struct literalcompiler[MissingLitField](https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source%3Dgopls#MissingLitField)json

Is this because I am using the plugin in a wrong way?

@chenliu1993
Copy link
Author

close this one since I have got the answer.I cannot rememeber it clearly since it's been some time. THe reason is that I should use the gogo not original go-proc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant