yamlutil

package
v3.115.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Edit

func Edit(original []byte, new interface{}) ([]byte, error)

Edit does a deep comparison on original and new and returns a YAML document that modifies only the nodes changed between original and new.

func YamlEncode

func YamlEncode(v interface{}) ([]byte, error)

Encodes a value using a two space indentation.

Types

type HasRawValue

type HasRawValue interface {
	RawValue() []byte
}

Jump to

Keyboard shortcuts

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