Do not find through unexported values

v2
Nikita Tokarchuk 5 years ago
parent e7a05d94e1
commit e0c26f770f
  1. 3
      mongox/base/getprotection.go

@ -19,6 +19,9 @@ func GetProtection(source interface{}) *protection.Key {
for i := 0; i < numField; i++ {
field := el.Field(i)
if !field.CanInterface() {
continue
}
switch field.Interface().(type) {
case *protection.Key:

Loading…
Cancel
Save