cbor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cbor provides CBOR (Concise Binary Object Representation) format support for neoma content negotiation.

Index

Constants

This section is empty.

Variables

View Source
var DefaultCBORFormat = core.Format{
	Marshal: func(w io.Writer, v any) error {
		return cborEncMode.NewEncoder(w).Encode(v)
	},
	Unmarshal: cbor.Unmarshal,
}

DefaultCBORFormat is a pre-configured core.Format that marshals and unmarshals CBOR using canonical sort order and shortest float encoding.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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