proxy.golang.org : github.com/cloudquery/protostructure
Package protostructure provides a mechanism for encoding and decoding a struct _type_ using protocol buffers. To be clear: this encodes the _type_ and not the _value_. Most importantly, this lets you do things such as transferring a struct that supports JSON decoding across a protobuf RPC, and then decoding a JSON value directly into it since you have access to things such as struct tags from the remote end. For a pure JSON use case, it may make sense to instead send the JSON rather than send the struct type. There are other scenarios where sending the type is easier and this library facilitates those use cases. The primary functions you want to look at are "Encode" and "New".
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/cloudquery/protostructure
License: MIT
Latest release: about 4 years ago
First release: about 4 years ago
Namespace: github.com/cloudquery
Last synced: about 11 hours ago