Documentation
¶
Overview ¶
Package protoyaml is a frozen, internal helper for decoding protobuf query plan data as YAML/JSON. It is retained only for downstream compatibility: spanner-mycli pins the exact bytes produced by Marshal, so the output format must not change.
The Marshal output format was never a designed artifact. It is an accident of reflection-based encoding (goccy/go-yaml over the protobuf message via UseJSONMarshaler) rather than a deliberate, canonical mapping. New code should use github.com/apstndb/protoyaml, which implements the canonical protojson-over-YAML mapping.
This package will be removed in v0.3.0 once spanner-mycli has migrated.
Deprecated: Use github.com/apstndb/protoyaml instead. This package is frozen for downstream compatibility and will be removed in v0.3.0.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal
deprecated
Marshal encodes a protobuf message as YAML using reflection-based encoding.
Deprecated: The output format is an accident of reflection-based encoding, not a designed artifact. This package is frozen for downstream compatibility (spanner-mycli pins its exact output) and will be removed in v0.3.0. New code should use github.com/apstndb/protoyaml.Marshal, which produces canonical protojson-over-YAML output.
func UnmarshalJSON
deprecated
added in
v0.1.5
UnmarshalJSON unmarshals JSON bytes into a protobuf message with this package's decode options.
Deprecated: Use github.com/apstndb/protoyaml.UnmarshalJSON instead. This package is frozen for downstream compatibility and will be removed in v0.3.0.
func YAMLToJSON
deprecated
added in
v0.1.5
Types ¶
This section is empty.