canonical

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package canonical encodes versioned optimization content and rejects ambiguous JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte, into any) error

Decode accepts one JSON object with no unknown or duplicate members.

func Marshal

func Marshal(value any) ([]byte, error)

Marshal uses Go's deterministic map ordering while preserving array order and exact json.Number values. Callers define the schema and omit display metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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