Help us shape the future of Go! Take the 2026 Go Developer Survey

format

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package format provides deterministic JSON serialization for git-friendly diffs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalCanonical

func MarshalCanonical(v any) ([]byte, error)

MarshalCanonical produces deterministic JSON output with sorted keys and consistent formatting for git-friendly diffs.

func UnmarshalCanonical

func UnmarshalCanonical(data []byte, v any) error

UnmarshalCanonical unmarshals JSON data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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