Versions in this module Expand all Collapse all v1 v1.1.21 Jul 5, 2021 Changes in this version + var ErrBytesFormat = errors.New("ErrBytesFormat") + func Unmarshal(r io.Reader, pb proto.Message) error + func UnmarshalNext(dec *json.Decoder, pb proto.Message) error + func UnmarshalString(str string, pb proto.Message) error + type AnyResolver interface + Resolve func(typeURL string) (proto.Message, error) + type JSONPBmarshaler interface + MarshalJSONPB func(*Marshaler) ([]byte, error) + type JSONPBunmarshaler interface + UnmarshalJSONPB func(*Unmarshaler, []byte) error + type Marshaler struct + AnyResolver AnyResolver + EmitDefaults bool + EnableUTF8BytesToString bool + EnumsAsInts bool + Indent string + OrigName bool + func (m *Marshaler) Marshal(out io.Writer, pb proto.Message) error + func (m *Marshaler) MarshalToString(pb proto.Message) (string, error) + type Unmarshaler struct + AllowUnknownFields bool + AnyResolver AnyResolver + EnableUTF8BytesToString bool + func (u *Unmarshaler) Unmarshal(r io.Reader, pb proto.Message) error + func (u *Unmarshaler) UnmarshalNext(dec *json.Decoder, pb proto.Message) error