Versions in this module Expand all Collapse all v1 v1.0.1 Dec 1, 2022 v1.0.0 Nov 24, 2022 Changes in this version + func BufferToDiff(buff bytes.Buffer, colorLeft bool, dumbterm bool, minimal bool) string + func ColorDiff(dmp *diffmatchpatch.DiffMatchPatch, diffs []diffmatchpatch.Diff, ...) string + func Fail(msg string, params ...interface{}) + func Info(msg string, params ...interface{}) + func LineAtPosition(records []LineOffset, pos uint32) int + func LocalFileTrees(cmd string, switches []string, options types.Options, langName string, ...) (string, []byte, []byte) + func Max(a, b T) T + func Min(a, b T) T + func RevisionToCurrentTree(filename string, cmd string, switches []string, options types.Options, ...) ([]byte, []byte) + func SemanticChanges(dmp *diffmatchpatch.DiffMatchPatch, diffs []diffmatchpatch.Diff, ...) string + func VerifyHash(filename string, digest string) bool + type LineOffset struct + End uint32 + Line string + Start uint32 + func MakeOffsetsFromByteArray(text []byte) []LineOffset + func MakeOffsetsFromString(text string) []LineOffset