Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sergi/go-diff
/ min
Function
min
diffmatchpatch/mathutil.go:11–16 ·
view source on GitHub ↗
(x, y int)
Source
from the content-addressed store, hash-verified
9
package
diffmatchpatch
10
11
func
min(x, y int) int {
12
if
x < y {
13
return
x
14
}
15
return
y
16
}
17
18
func
max(x, y int) int {
19
if
x > y {
Callers
2
PatchAddContext
Method · 0.85
PatchSplitMax
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected