A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/google.golang.org/protobuf@v1.36.7/encoding/protojson below:

protojson package - google.golang.org/protobuf/encoding/protojson - Go Packages

Package protojson marshals and unmarshals protocol buffer messages as JSON format. It follows the guide at https://protobuf.dev/programming-guides/proto3#json.

This package produces a different output than the standard encoding/json package, which does not operate correctly on protocol buffer messages.

This section is empty.

This section is empty.

Format formats the message as a multiline string. This function is only intended for human consumption and ignores errors. Do not depend on the output being stable. Its output will change across different builds of your program, even when using the same version of the protobuf module.

Marshal writes the given proto.Message in JSON format using default options. Do not depend on the output being stable. Its output will change across different builds of your program, even when using the same version of the protobuf module.

Unmarshal reads the given []byte into the given proto.Message. The provided message must be mutable (e.g., a non-nil pointer to a message).

MarshalOptions is a configurable JSON format marshaler.

Format formats the message as a string. This method is only intended for human consumption and ignores errors. Do not depend on the output being stable. Its output will change across different builds of your program, even when using the same version of the protobuf module.

Marshal marshals the given proto.Message in the JSON format using options in Do not depend on the output being stable. Its output will change across different builds of your program, even when using the same version of the protobuf module.

MarshalAppend appends the JSON format encoding of m to b, returning the result.

UnmarshalOptions is a configurable JSON format parser.

Unmarshal reads the given []byte and populates the given proto.Message using options in the UnmarshalOptions object. It will clear the message first before setting the fields. If it returns an error, the given message may be partially set. The provided message must be mutable (e.g., a non-nil pointer to a message).


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4