Documentation ¶
Index ¶
Constants ¶
View Source
const OP_DELETE = "-"
View Source
const OP_DMP = "d"
diff match patch
View Source
const OP_EQUAL = "="
View Source
const OP_INSERT = "+"
View Source
const OP_MODIFY = "M"
View Source
const OP_REPLACE = "r"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolJSONDiff ¶
type Float32JSONDiff ¶
type Int64JSONDiff ¶
type StringJSONDiff ¶
func GetDiff ¶
func GetDiff(s1 string, s2 string) StringJSONDiff
func (*StringJSONDiff) Apply ¶
func (jsondiff *StringJSONDiff) Apply(src string) string
func (*StringJSONDiff) PrettyPrint ¶ added in v1.10.0
func (jsondiff *StringJSONDiff) PrettyPrint(source string, content string)
Click to show internal directories.
Click to hide internal directories.