Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/coder
/ minOf
Function
minOf
cli/cliutil/levenshtein/levenshtein.go:91–102 ·
view source on GitHub ↗
(ts ...T)
Source
from the content-addressed store, hash-verified
89
}
90
91
func
minOf[T constraints.Ordered](ts ...T) T {
92
if
len(ts) == 0 {
93
panic(
"minOf: no arguments"
)
94
}
95
m := ts[0]
96
for
_, t :=
range
ts[1:] {
97
if
t < m {
98
m = t
99
}
100
}
101
return
m
102
}
Callers
1
Distance
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected