(key string, iMap map[string]interface{}, v *BoolPtrValidation)
| 45 | } |
| 46 | |
| 47 | func BoolPtrFromInterfaceMap(key string, iMap map[string]interface{}, v *BoolPtrValidation) (*bool, error) { |
| 48 | inter, ok := ReadInterfaceMapValue(key, iMap) |
| 49 | if !ok { |
| 50 | val, err := ValidateBoolPtrMissing(v) |
| 51 | if err != nil { |
| 52 | return nil, errors.Wrap(err, key) |
| 53 | } |
| 54 | return val, nil |
| 55 | } |
| 56 | val, err := BoolPtr(inter, v) |
| 57 | if err != nil { |
| 58 | return nil, errors.Wrap(err, key) |
| 59 | } |
| 60 | return val, nil |
| 61 | } |
| 62 | |
| 63 | func BoolPtrFromStrMap(key string, sMap map[string]string, v *BoolPtrValidation) (*bool, error) { |
| 64 | valStr, ok := sMap[key] |
no test coverage detected