You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: checkparameter.go
    path of file: ./repos/faygo/ext/db/directsql
    
    the code of the file until where you have to start completion: /**
* desc   : 参数校验函数
* author : 畅雨
* date   : 201
    
func IsVaildValue(value, min, max float64) bool {
	// min,max都未定义或都为0则不校验大小
	if min <= 0 && max <= 0 {
		return true
	}
	// 只验证最小值，最大值不验证
	if min > 0 && max <= 0 {
		return value >= min
	}
	if min > max {
		min, max = max, min
	}
	return value >= min && value <= max
}