yamlutil

package
v0.1.21 Latest Latest
Warning

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

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

Documentation

Overview

Package yamlutil provides utilities for deterministic YAML serialization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDeterministic

func MarshalDeterministic(v interface{}) ([]byte, error)

MarshalDeterministic serializes a value with deterministic map ordering. This ensures output is consistent across runs, preventing spurious diffs and enabling reliable content comparison.

func SortYAMLNode

func SortYAMLNode(node *safeyaml.Node)

SortYAMLNode recursively sorts all map keys in a YAML node tree.

Types

This section is empty.

Jump to

Keyboard shortcuts

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