diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2019-11-12 10:54:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-12 10:54:20 -0500 |
| commit | 677ea79e35e3010ab574e617670e5240ef7a7cba (patch) | |
| tree | 4fcd1348fc74e17d3ee1e55aacb74346dbc26afb /vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go | |
| parent | ede87d4afa31ddf55e1a115e22c01c2f4a7b8e74 (diff) | |
| parent | 744dfe262acc681c78549c250b6db8e31312f2c9 (diff) | |
Merge pull request #661 from hairyhenderson/git-datasource
New git datasource
Diffstat (limited to 'vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go')
| -rw-r--r-- | vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go b/vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go new file mode 100644 index 00000000..aed242bc --- /dev/null +++ b/vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go @@ -0,0 +1,23 @@ +// Copyright (c) 2012-2016 The go-diff authors. All rights reserved. +// https://github.com/sergi/go-diff +// See the included LICENSE file for license details. +// +// go-diff is a Go implementation of Google's Diff, Match, and Patch library +// Original library is Copyright (c) 2006 Google Inc. +// http://code.google.com/p/google-diff-match-patch/ + +package diffmatchpatch + +func min(x, y int) int { + if x < y { + return x + } + return y +} + +func max(x, y int) int { + if x > y { + return x + } + return y +} |
