package direct

import "k8s.io/apimachinery/pkg/runtime/serializer/cbor/direct"

Package direct provides functions for marshaling and unmarshaling between arbitrary Go values and CBOR data, with behavior that is compatible with that of the CBOR serializer. In particular, types that implement cbor.Marshaler and cbor.Unmarshaler should use these functions.

Index

Functions

func Diagnose

func Diagnose(src []byte) (string, error)

func Marshal

func Marshal(src interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(src []byte, dst interface{}) error

Source Files

direct.go

Version
v0.32.0-alpha.0
Published
Jul 20, 2024
Platform
js/wasm
Imports
1 packages
Last checked
17 hours ago

Tools for package owners.