Versions in this module Expand all Collapse all v0 v0.2.0 Nov 5, 2024 Changes in this version + var DefaultDiffOptions = DiffOptions + var DefaultOutputOptions = FormatOptions + type Diff struct + func (d *Diff) Format(opts FormatOptions) string + type DiffOptions struct + IgnoreSeqOrder bool + type DocDiffs []*Diff + func (a DocDiffs) Len() int + func (a DocDiffs) Less(i, j int) bool + func (a DocDiffs) Swap(i, j int) + func (d DocDiffs) Format(opts FormatOptions) string + type FileDiffs []DocDiffs + func Compare(left []byte, right []byte, comments bool, opts DiffOptions) (FileDiffs, error) + func CompareAst(left *ast.File, right *ast.File, opts DiffOptions) FileDiffs + func CompareFile(leftFile string, rightFile string, comments bool, opts DiffOptions) (FileDiffs, error) + func (d FileDiffs) Format(opts FormatOptions) string + func (d FileDiffs) HasDiff() bool + type FormatOptions struct + Metadata bool + Plain bool + Silent bool