mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 14:49:32 +01:00
24 lines
498 B
Go
24 lines
498 B
Go
|
// 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
|
||
|
}
|