eachchange

package
v0.0.0-...-ad3cfc1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package eachchange will compare two areas

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(area1, area2 *area.Area) *area.Area

Diff returns a new fixed area of the size of area1 with all the Char of area1 that are not equal in area2

func EachChange

func EachChange(area1, area2 *area.Area, fn func(Row, Col int, a1Char, a2Char area.Char))

EachChange compares two areas and invoke the callback every time there is a difference. It only covers the area of area1.

Types

type Char

type Char interface {
	Equal(Char) bool
}

Char interface that must be implemented for EachChange to work

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳