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