yamldiff

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffStatus

type DiffStatus int
const (
	DiffStatusSame     DiffStatus = 1
	DiffStatusDiff     DiffStatus = 2
	DiffStatus1Missing DiffStatus = 3
	DiffStatus2Missing DiffStatus = 4
)

type Diffs

type Diffs []*diff

type DoOptionFunc

type DoOptionFunc func(o *doOptions)

func EmptyAsNull

func EmptyAsNull() DoOptionFunc

func ZeroAsNull

func ZeroAsNull() DoOptionFunc

type RawYaml

type RawYaml struct {
	// contains filtered or unexported fields
}

type RawYamlList

type RawYamlList []*RawYaml

func Load

func Load(s string) (RawYamlList, error)

type YamlDiff

type YamlDiff struct {
	// contains filtered or unexported fields
}

func Do

func Do(rawA RawYamlList, rawB RawYamlList, options ...DoOptionFunc) []*YamlDiff

func (*YamlDiff) Dump

func (y *YamlDiff) Dump() string

func (*YamlDiff) Status

func (y *YamlDiff) Status() DiffStatus

Jump to

Keyboard shortcuts

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