We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Protobuf now has 3 unexported fields
type MyPbStruct struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MyInt int32 `protobuf:"varint,1,opt,name=my_int,json=friendRuid,proto3" json:"my_int,omitempty"` }
When trying to set this struct zero
st := new(MyPbStruct) err := allocate.Zero(st) if err != nil{ log.Error(err) }
I got
struct field can't interface, &impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(nil)}
The text was updated successfully, but these errors were encountered:
Hi @Kybxd, I am facing the exact same issue did you solve it ?
Sorry, something went wrong.
No branches or pull requests
Protobuf now has 3 unexported fields
When trying to set this struct zero
I got
The text was updated successfully, but these errors were encountered: