New creates a new DiffMatchPatch object with default parameters.
()
| 34 | |
| 35 | // New creates a new DiffMatchPatch object with default parameters. |
| 36 | func 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 | } |
no outgoing calls