diff

package
v0.0.0-...-552dcf1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFilePatch

func CreateFilePatch(wanted, got string) (fdiff.FilePatch, error)

CreateFilePatch - returns a new FilePatch for the given difference

Types

type Patch

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

func NewPatch

func NewPatch(filePatches []fdiff.FilePatch, message string) *Patch

NewPatch - returns a new Patch intance

func (*Patch) FilePatches

func (t *Patch) FilePatches() []fdiff.FilePatch

func (*Patch) Format

func (t *Patch) Format() string

func (*Patch) Message

func (t *Patch) Message() string

Jump to

Keyboard shortcuts

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