Closed onns closed 5 months ago
Ultimately, vim-go delegates the changes to fill the struct to gopls
or fillstruct
. While these fields are annoying in protobufs, they may exist in other structures for reasons that may be useful to clients.
Also, protoc-gen-go
was updated four years ago to no longer generate these fields.
refs:
edit: typos
What did you do? (required: The issue will be closed when not provided)
What did you expect to happen?
can
GoFillStruct
ignore unknown fields of grpc proto pb file?maybe struct like this, run
GoFillStruct
will add XXX... to the code, Which is no use for coding.I use
gopls
: