badger
badger copied to clipboard
`refactor(protobuf): [Breaking]` Use `google.golang.org/protobuf`
Problem
-
github.com/golang/protobuf
andhttps://github.com/gogo/protobuf
were deprecated. -
XXX_DiscardUnknown
,XXX_Marshal
,XXX_Merge
,XXX_Size
,XXX_Unmarshal
methods for structs inbadgerpb4.pb.go
are removed.
Solution
- Use
google.golang.org/protobuf/cmd/protoc-gen-go
to generatebadgerpb4.pb.go
- Add
Size
,Marshal
,MarshalTo
,MarshalToSizedBuffer
,Unmarshal
methods topb.KV
,pb.DataKey
, likeprotoc-gen-gogofaster
does. - Replace the imports
Deploy Preview for badger-docs canceled.
Name | Link |
---|---|
Latest commit | 56a7f61068b85ee0925b8210ee6991576e20415f |
Latest deploy log | https://app.netlify.com/sites/badger-docs/deploys/66082f888510dd000811d4f5 |
This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.
Still relevant