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

Migrate Protobuf Module #11

Open
lmangani opened this issue Aug 26, 2024 · 0 comments
Open

Migrate Protobuf Module #11

lmangani opened this issue Aug 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lmangani
Copy link
Member

go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.

  1. Update the Import Paths
    Replace all occurrences of github.com/golang/protobuf with google.golang.org/protobuf
  2. Update the Go Modules
    Replace the dependency on github.com/golang/protobuf with google.golang.org/protobuf:
  3. Update Code References
    The google.golang.org/protobuf package has some changes compared to github.com/golang/protobuf. For example:
  • proto.Message is now an interface, not a struct.
  • Methods like proto.Marshal, proto.Unmarshal, and proto.Equal are now in google.golang.org/protobuf/proto.
@lmangani lmangani added the enhancement New feature or request label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants
@lmangani @adubovikov and others