validate
validate copied to clipboard
V2 - refactoring
old:
// Gt check value greater dst value. only check for: int(X), uint(X), float(X)
func Gt(val interface{}, dstVal int64) bool {
v2 new:
// Gt check value greater dst value. only check for: int(X), uint(X), float(X)
func Gt(val, dstVal interface{}) bool {
return gt(reflect.ValueOf(val), reflect.ValueOf(dstVal))
}
// internal implements
func gt(val reflect.Value, dstVal reflect.Value) bool