An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.6% on proxy.golang.org
Top 2.1% dependent packages on proxy.golang.org
Top 1.5% dependent repos on proxy.golang.org
Top 0.8% docker downloads on proxy.golang.org

proxy.golang.org : github.com/hashicorp/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/hashicorp/protostructure
License: MIT
Latest release: about 3 years ago
First release: about 3 years ago
Namespace: github.com/hashicorp
Dependent packages: 7
Dependent repositories: 13
Stars: 0 on GitHub
Forks: 1 on GitHub
Docker dependents: 52
Docker downloads: 63,085
See more repository details: repos.ecosyste.ms
Last synced: 9 days ago

    Loading...
    Readme
    Loading...