yamldiff

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffStatus added in v0.3.0

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

type Diffs

type Diffs []*diff

type DoOptionFunc added in v1.1.0

type DoOptionFunc func(o *doOptions)

func EmptyAsNull added in v1.1.0

func EmptyAsNull() DoOptionFunc

func ZeroAsNull added in v1.2.0

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 added in v1.0.0

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

func Do

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

func (*YamlDiff) Dump added in v1.0.0

func (y *YamlDiff) Dump() string

func (*YamlDiff) Status added in v1.1.0

func (y *YamlDiff) Status() DiffStatus

Jump to

Keyboard shortcuts

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