MCPcopy Create free account
hub / github.com/sergi/go-diff / New

Function New

diffmatchpatch/diffmatchpatch.go:36–47  ·  view source on GitHub ↗

New creates a new DiffMatchPatch object with default parameters.

()

Source from the content-addressed store, hash-verified

34
35// New creates a new DiffMatchPatch object with default parameters.
36func New() *DiffMatchPatch {
37 // Defaults.
38 return &DiffMatchPatch{
39 DiffTimeout: time.Second,
40 DiffEditCost: 4,
41 MatchThreshold: 0.5,
42 MatchDistance: 1000,
43 PatchDeleteThreshold: 0.5,
44 PatchMargin: 4,
45 MatchMaxBits: 32,
46 }
47}

Calls

no outgoing calls