bug fixed

This commit is contained in:
Lunny Xiao 2016-05-29 16:47:54 +08:00
parent 800f4b35db
commit 3d4a143814
1 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,10 @@ func isZero(k interface{}) bool {
}
func isStructZero(v reflect.Value) bool {
if !v.IsValid() {
return true
}
for i := 0; i < v.NumField(); i++ {
field := v.Field(i)
switch field.Kind() {