Documentation
¶
Overview ¶
Package yaml is the YAML codec: yaml.v3 to read, yamlfmt to write, so a file saved by Cartograph keeps the two-space indentation the vaults are written in by hand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct{}
Codec is the YAML codec. The zero value is ready to use.
func (Codec) DecodeAll ¶
DecodeAll splits a file on "---". A file holding exactly one manifest keeps its original bytes, so what is committed is the text that was written; only a file that holds several is re-marshalled per document, since there is no other way to give each its own text. An empty document (a stray "---", trailing comments) is skipped: it names no kind and is not an attempt at one.
Click to show internal directories.
Click to hide internal directories.