style:包名小写

This commit is contained in:
Mmx
2021-07-11 12:02:42 +08:00
parent 78e9aa9ec3
commit e3f668c100
14 changed files with 51 additions and 50 deletions

19
modles/util/reflect.go Normal file
View File

@@ -0,0 +1,19 @@
package util
import "reflect"
type reflectR struct{}
var Reflect reflectR
func (*reflectR) IsEmpty(v reflect.Value) bool {
switch v.Kind() {
case reflect.Bool:
return !v.Bool()
case reflect.String:
return v.String() == ""
default:
panic("未设定值")
}
return false
}