modulepackage
0.0.0-20210811021341-3670f0aa02d0
Repository: https://github.com/streamingfast/jsonpb.git
Documentation: pkg.go.dev
# README
jsonpb
Library - StreamingFast fork
This is simply a copy of Google Protocol Buffer jsonpb
package
where []byte
types by default outputs to hexadecimal encoding instead
of base64 encoding.
Usage
package main
func main() {
block := &pbdeos.Block{}
blockJSON := jsonpb.MarshalToString(block)
}
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
Unmarshal unmarshals a JSON object from r into m.
UnmarshalNext unmarshals the next JSON object from d into m.
UnmarshalString unmarshals a JSON object from s into m.
# Structs
Marshaler is a configurable object for marshaling protocol buffer messages to the specified JSON representation.
Unmarshaler is a configurable object for converting from a JSON representation to a protocol buffer object.
# Interfaces
AnyResolver takes a type URL, present in an Any message, and resolves it into an instance of the associated message.
JSONPBMarshaler is implemented by protobuf messages that customize the way they are marshaled to JSON.
JSONPBUnmarshaler is implemented by protobuf messages that customize the way they are unmarshaled from JSON.