package tyr // CheckIntRange 检测整数范围 func CheckIntRange(n, min, max int) bool { if n < min || n > max { return false } return true }