Documentation
¶
Overview ¶
Package yamlpatch is a library for applying RFC6902 JSON patches to yaml documents. It leverages go-yaml v3's Node type to preserve comments, ordering, and most formatting.
Index ¶
Constants ¶
View Source
const ( OperationAdd = yamlpatch.OperationAdd OperationReplace = yamlpatch.OperationReplace OperationRemove = yamlpatch.OperationRemove OperationMove = yamlpatch.OperationMove OperationCopy = yamlpatch.OperationCopy OperationTest = yamlpatch.OperationTest )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Path ¶
Path represents a decoded JSON patch targeting a location within a document. Use ParsePath or UnmarshalText to construct a Path.
func MustParsePath ¶
MustParsePath is like ParsePath but panics in case of invalid input.
Click to show internal directories.
Click to hide internal directories.