yamldiff

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	Diff string

	Yaml1Struct *RawYaml
	Yaml2Struct *RawYaml

	Status DiffStatus
	// contains filtered or unexported fields
}

type DiffStatus added in v0.3.0

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

type Diffs

type Diffs []*Diff

func Do

func Do(list1 RawYamlList, list2 RawYamlList) Diffs

type RawYaml

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

type RawYamlList

type RawYamlList []*RawYaml

func Load

func Load(s string) RawYamlList

Jump to

Keyboard shortcuts

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