Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const LineDiffVersion + const LineDiffVersion_0 + const MapDiffVersion + const MapDiffVersion_0 + func ApplyLineDiff(str1 string, diffBytes []byte) (string, error) + func ApplyMapDiff(oldMap map[string][]byte, diffBytes []byte) (map[string][]byte, error) + func MakeLineDiff(str1 string, str2 string, splitString string) []byte + func MakeMapDiff(m1 map[string][]byte, m2 map[string][]byte) []byte + type LineDiffType struct + Lines []SingleLineEntry + NewData []string + SplitString string + Version int + func (diff *LineDiffType) Clear() + func (diff LineDiffType) Dump() + func (diff LineDiffType) Encode() []byte + func (diff LineDiffType) Encode_v0() []byte + func (rtn *LineDiffType) Decode(diffBytes []byte) error + func (rtn *LineDiffType) Decode_v0(diffBytes []byte) error + type MapDiffType struct + ToAdd map[string][]byte + ToRemove []string + func (diff *MapDiffType) Clear() + func (diff *MapDiffType) Decode(diffBytes []byte) error + func (diff *MapDiffType) Decode_v0(diffBytes []byte) error + func (diff MapDiffType) Dump() + func (diff MapDiffType) Encode() []byte + func (diff MapDiffType) Encode_v0() []byte + type SingleLineEntry struct + LineVal int + Run int