-
Notifications
You must be signed in to change notification settings - Fork 68
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
Conversation
Cc @glimchb |
Codecov Report
❗ 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 |
There was a problem hiding this comment.
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
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
andunsafe
for looking at the raw value.