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

There are too many unnecessary things when integrating protobuf 3 #102

Open
sea3366 opened this issue Dec 21, 2022 · 1 comment
Open

There are too many unnecessary things when integrating protobuf 3 #102

sea3366 opened this issue Dec 21, 2022 · 1 comment

Comments

@sea3366
Copy link

sea3366 commented Dec 21, 2022

The Protobuf 3 structure will generate the following three fields:
type User struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}

These fields depend on other objects, and other objects depend on other objects.

Suggestion: Handle this special case in the buildProperty function. In fact, these fields do not need to generate documents.

File: definition_builder.go
Function: buildProperty

@sea3366 sea3366 changed the title Protobuf Message causes stack overflow There are too many unnecessary things when integrating protobuf 3 Dec 21, 2022
@emicklei
Copy link
Owner

emicklei commented Dec 22, 2022 via email

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

2 participants