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

Add proto encoding example #144

Merged
merged 5 commits into from
Nov 11, 2023
Merged

Add proto encoding example #144

merged 5 commits into from
Nov 11, 2023

Conversation

philippgille
Copy link
Owner

@philippgille philippgille commented Nov 4, 2023

Following the proto encoding PR by @glimchb and the move to a subdirectory, this PR adds a code example on how to use it, including instructions on how to generate the Go code file from the proto file, as well as how to use reflect and unsafe for looking at the raw value.

@philippgille
Copy link
Owner Author

Cc @glimchb

@codecov-commenter
Copy link

codecov-commenter commented Nov 5, 2023

Codecov Report

Merging #144 (1030755) into master (087cefb) will not change coverage.
The diff coverage is n/a.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@           Coverage Diff           @@
##           master     #144   +/-   ##
=======================================
  Coverage   65.26%   65.26%           
=======================================
  Files          25       25           
  Lines        2096     2096           
=======================================
  Hits         1368     1368           
  Misses        601      601           
  Partials      127      127           

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

google.golang.org/protobuf v1.31.0
)

replace github.com/philippgille/gokv/encoding/proto => ../../encoding/proto
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ We can and should remove this once we tag a release and can then import github.com/philippgille/gokv/encoding/proto with a proper version.

When more examples are added we should iterate through the directory
@philippgille philippgille merged commit 1931929 into master Nov 11, 2023
6 checks passed
@philippgille philippgille deleted the add-proto-encoding-example branch January 7, 2024 15:29
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

Successfully merging this pull request may close these issues.

2 participants