Versions in this module Expand all Collapse all v1 v1.0.4 Jun 24, 2024 Changes in this version + type Diff struct + func (d Diff) Clean(keep uint) error + func (d Diff) PrintAndSave(out io.Writer) error + func (d Diff) Save() error + func (d Diff) String() string + type Differ struct + func NewDiffer(fs FS, dataDir string, contextLine int) *Differ + func (ds Differ) Diff(s1name, s1, s2name, s2 string) string + func (ds Differ) DiffLatest(name string, targetStr string) Diff + type FS interface + Delete func(path string) error + Exist func(path string) bool + ListFiles func(dir string) ([]string, error) + MkDir func(path string) error + ReadFile func(path string) ([]byte, error) + WriteFile func(path string, data []byte) error