multilinediff

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 4 Imported by: 1

README

multilinediff

Pretty multiline diff tool and library with a custom reporter for cmp.Diff.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff added in v0.2.0

func Diff(a, b, lineSep string) (string, int)

Get the diff between two strings.

Types

type Reporter

type Reporter struct {
	LineSep   string
	DiffCount int
	// contains filtered or unexported fields
}

A pretty reporter to pass into cmp.Diff using the cmd.Reporter function.

func (*Reporter) PopStep

func (r *Reporter) PopStep()

func (*Reporter) PushStep

func (r *Reporter) PushStep(ps cmp.PathStep)

func (*Reporter) Report

func (r *Reporter) Report(rs cmp.Result)

func (*Reporter) String

func (r *Reporter) String() string

Directories

Path Synopsis
cmd
mld
internal

Jump to

Keyboard shortcuts

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