canonical

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package canonical implements the bounded Forecast Ledger JCS profile.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedValue = errors.New("value is outside the supported RFC 8785 profile")

Functions

func Marshal

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

Marshal returns RFC 8785/JCS bytes for the project's I-JSON subset. The profile deliberately rejects floats; exact decimals are represented as strings and probabilities as safe integers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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