MCPcopy Index your code
hub / github.com/TruthHun/BookStack / RangeNumber

Function RangeNumber

utils/util.go:915–923  ·  view source on GitHub ↗
(val, min, max int)

Source from the content-addressed store, hash-verified

913}
914
915func RangeNumber(val, min, max int) int {
916 if val > max {
917 return max
918 }
919 if val < min {
920 return min
921 }
922 return val
923}
924
925func DeleteFile(file string) {
926 file = strings.TrimPrefix(strings.TrimSpace(file), "/")

Callers 8

getFansOrFollowMethod · 0.92
UserReleaseBookMethod · 0.92
SearchBookMethod · 0.92
SearchDocMethod · 0.92
BookListsMethod · 0.92
BookListsByCidsMethod · 0.92
BookshelfMethod · 0.92
GetCommentsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected