Registry / serialization / golang-protobuf

golang-protobuf

JSON →
librarygogounverified

Package proto provides functions for the Go implementation of protocol buffers.

go get github.com/golang/protobuf
INSTALL
IMPORT
SIG · GOLANG-PROTOBUF
G
golang-protobuf
serializationgo
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

proto
github.com/golang/protobuf/proto

Marshal and unmarshal a protobuf message

package main import ( "github.com/golang/protobuf/proto" pb "path/to/your/proto" ) func main() { msg := &pb.MyMessage{Name: proto.String("example")} data, _ := proto.Marshal(msg) proto.Unmarshal(data, msg) }
Debug
Known issues
breakingDeprecated in favor of google.golang.org/protobuf
fix
Migrate to google.golang.org/protobuf
affects: >=1.20.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
golang-protobuf — go get golang-protobuf · libregistry