style:修正拼写错误

This commit is contained in:
Mmx
2021-07-27 09:47:45 +08:00
parent f0c262a2b0
commit a6be2fa234
5 changed files with 7 additions and 7 deletions

19
models/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
}