Documentation ¶
Index ¶
- Constants
- func LoadFile(input, location string) (ytbx.InputFile, error)
- func NewHumanReport(report *dyff.Report) *dyff.HumanReport
- func ToHumanString(humanReport *dyff.HumanReport) (string, error)
- func ToRawString(humanReport *dyff.HumanReport) (string, error)
- func ToReport(oldData, newData interface{}) (*dyff.Report, error)
- func ToReportString(humanReport *dyff.HumanReport, mode string) (string, error)
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
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
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.
Click to show internal directories.
Click to hide internal directories.