Documentation ¶
Overview ¶
Package serdeutil contains utility functions for serializing and deserializing different file formats used by SDK. Namely it bridges gaps between JSON and YAML encoding libraries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawMessage ¶
type RawMessage []byte
RawMessage is a raw encoded JSON or YAML value. It implements: - [json.Marshaler] and [json.Unmarshaler] - [yaml.BytesMarshaler] and [yaml.BytesUnmarshaler] It can be used to delay JSON/YAML decoding or precompute a JSON/YAML encoding.
func (RawMessage) MarshalJSON ¶
func (m RawMessage) MarshalJSON() ([]byte, error)
func (RawMessage) MarshalYAML ¶
func (m RawMessage) MarshalYAML() ([]byte, error)
func (*RawMessage) UnmarshalJSON ¶
func (m *RawMessage) UnmarshalJSON(data []byte) error
func (*RawMessage) UnmarshalYAML ¶
func (m *RawMessage) UnmarshalYAML(data []byte) error
Click to show internal directories.
Click to hide internal directories.