serdeutil

package
v0.93.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL