From 744dfe262acc681c78549c250b6db8e31312f2c9 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 1 Nov 2019 21:47:58 -0400 Subject: New git datasource Signed-off-by: Dave Henderson --- .../sergi/go-diff/diffmatchpatch/mathutil.go | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go (limited to 'vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go') 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 +} -- cgit v1.2.3