Documentation ¶
Overview ¶
Package diffz provides functions for comparing and displaying differences between two strings. It's based on kylelemons/godebug and sergi/go-diff.
Index ¶
Constants ¶
View Source
const ( DiffDelete = diffmatchpatch.DiffDelete DiffInsert = diffmatchpatch.DiffInsert DiffEqual = diffmatchpatch.DiffEqual )
View Source
const DefaultPlaceholder = '█'
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Diff ¶
type Diff = diffmatchpatch.Diff
type Operation ¶
type Operation = diffmatchpatch.Operation
type Option ¶
func IgnoreSpace ¶
func IgnoreSpace() Option
func Placeholder ¶
func Placeholder() Option
func PlaceholderX ¶
func PlaceholderZ ¶
func PlaceholderZ() Option
func (Option) AndIgnoreSpace ¶
func (Option) AndPlaceholder ¶
func (Option) AndPlaceholderX ¶
func (Option) DiffByChar ¶
func (Option) DiffByLine ¶
Click to show internal directories.
Click to hide internal directories.