mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 11:58:21 +00:00
879b18d902
Package json provides a parser and serializer for the JSON format. This focuses on the grammar of the format and is agnostic towards specific semantics of protobuf types. High-level API: func Marshal(v Value, indent string) ([]byte, error) func Unmarshal(b []byte) (Value, error) type Type uint8 const Null Type ... type Value struct{ ... } func ValueOf(v interface{}) Value func (v Value) Type() Type func (v Value) Bool() bool func (v Value) Number() float64 func (v Value) String() string func (v Value) Array() []Value func (v Value) Object() [][2]Value func (v Value) Raw() []byte Change-Id: I26422f6b3881ef1a11b8aa95160645b1384b27b8 Reviewed-on: https://go-review.googlesource.com/127824 Reviewed-by: Herbie Ong <herbie@google.com>
4 lines
72 B
Modula-2
4 lines
72 B
Modula-2
module google.golang.org/proto
|
|
|
|
require github.com/google/go-cmp v0.2.0
|