Versions in this module Expand all Collapse all v1 v1.5.0 Sep 4, 2025 v1.4.0 Mar 3, 2025 Changes in this version + var DefaultIndentSpaces = 2 + var ErrIllegalDocumentAccess = fmt.Errorf("*goyamlDocumentContainer does not allow non-empty key access") + func ApplyUsingYAMLLibrary[NodeT any](yamllib YAMLLibrary[NodeT], originalBytes []byte, patch yamlpatch.Patch) ([]byte, error) + func NewYAMLPatchApplier[NodeT any](lib YAMLLibrary[NodeT]) yamlpatch.Patcher + func ParseSeqIndex(indexStr string) (int, error) + type YAMLContainer interface + Add func(key string, val NodeT) error + Get func(key string) (NodeT, error) + Remove func(key string) error + Set func(key string, val NodeT) error + type YAMLLibrary interface + BytesToContentNode func(in []byte) (node NodeT, err error) + BytesToNode func(in []byte) (node NodeT, err error) + CopyNode func(node NodeT) (NodeT, error) + NewContainer func(node NodeT) (YAMLContainer[NodeT], error) + NodeIsNil func(node NodeT) bool + NodeToBytes func(node NodeT) (out []byte, err error) + NodeToValue func(node NodeT) (out any, err error) + SetDocumentNodeContent func(documentNode NodeT, valueNode NodeT) error + Unmarshal func(in []byte, out interface{}) (err error) + ValueToNode func(value any, comment string) (NodeT, error)