diff

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputHuman = "human"
	OutputRaw   = "raw"
)

Supported output option values

Variables

This section is empty.

Functions

func LoadFile added in v0.5.2

func LoadFile(input, location string) (ytbx.InputFile, error)

LoadFile reads the provided input data slice as a YAML, JSON, or TOML file with potential multiple documents.

func NewHumanReport added in v0.5.2

func NewHumanReport(report *dyff.Report) *dyff.HumanReport

NewHumanReport return a default *dyff.HumanReport with head omitted

func ToHumanString added in v0.5.2

func ToHumanString(humanReport *dyff.HumanReport) (string, error)

func ToRawString added in v0.5.2

func ToRawString(humanReport *dyff.HumanReport) (string, error)

func ToReport added in v0.5.1

func ToReport(oldData, newData interface{}) (*dyff.Report, error)

ToReport compares objects, oldData and newData, and returns a report with the list of differences.

func ToReportString

func ToReportString(humanReport *dyff.HumanReport, mode string) (string, error)

ToReportString return a report string base on mode, valid mode: "human" and "raw"

Types

This section is empty.

Jump to

Keyboard shortcuts

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