Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MertJSX/folderhost
/ Clamp
Function
Clamp
utils/clamp.go:3–11 ·
view source on GitHub ↗
(value, min, max int)
Source
from the content-addressed store, hash-verified
1
package
utils
2
3
func
Clamp(value, min, max int) int {
4
if
value < min {
5
return
min
6
}
7
if
value > max {
8
return
max
9
}
10
return
value
11
}
Callers
2
applyDelete
Function · 0.92
applyReplace
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected