yamlfmt

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package yamlfmt writes YAML the way the vaults are written by hand.

yaml.v3 indents four spaces by default. Every manifest in this repository is written two, so saving one through Cartograph reindented the whole file and turned a one-line edit into a whole-file diff — the same complaint that moved autosave into a staging directory, arriving one step later at the save itself.

So there is one encoder, and everything that writes a manifest or a vault.yaml goes through it.

Index

Constants

View Source
const Indent = 2

Indent is the indentation every file Cartograph writes uses.

Variables

This section is empty.

Functions

func Marshal

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

Marshal encodes v as YAML at Cartograph's indentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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