document

package
v0.0.0-...-ae06814 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YamlManipulator

type YamlManipulator struct {
}

YamlManipulator can modify Yaml documents. Don't create it directly! Use constructor NewYamlManipulator instead!

func NewYamlManipulator

func NewYamlManipulator() *YamlManipulator

NewYamlManipulator creates YamlManipulator structure.

func (YamlManipulator) ApplyToLeafs

func (manipulator YamlManipulator) ApplyToLeafs(callback func([]byte) ([]byte, error), data interface{}) (interface{}, error)

ApplyToLeafs go through the tree of document and applies some callback to leafs

Jump to

Keyboard shortcuts

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