diff options
| author | Taras Madan <tarasmadan@google.com> | 2024-04-26 15:43:42 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2024-04-29 16:59:12 +0000 |
| commit | c6d0eaac7895871ce9946defe6bf4074f7c0e59c (patch) | |
| tree | 11222fe8e96dd0b12f08faf85c9885133afffc62 /vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go | |
| parent | e812177d8b1ca6d501d010be1c4e7efff3cc011c (diff) | |
all: add go-diff dependency and update vendor
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 000000000..aed242bc6 --- /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 +} |
