(key string, iMap map[string]interface{}, v *Float64PtrValidation)
| 63 | } |
| 64 | |
| 65 | func Float64PtrFromInterfaceMap(key string, iMap map[string]interface{}, v *Float64PtrValidation) (*float64, error) { |
| 66 | inter, ok := ReadInterfaceMapValue(key, iMap) |
| 67 | if !ok { |
| 68 | val, err := ValidateFloat64PtrMissing(v) |
| 69 | if err != nil { |
| 70 | return nil, errors.Wrap(err, key) |
| 71 | } |
| 72 | return val, nil |
| 73 | } |
| 74 | val, err := Float64Ptr(inter, v) |
| 75 | if err != nil { |
| 76 | return nil, errors.Wrap(err, key) |
| 77 | } |
| 78 | return val, nil |
| 79 | } |
| 80 | |
| 81 | func Float64PtrFromStrMap(key string, sMap map[string]string, v *Float64PtrValidation) (*float64, error) { |
| 82 | valStr, ok := sMap[key] |
no test coverage detected