(key string, iMap map[string]interface{}, v *Float64Validation)
| 56 | } |
| 57 | |
| 58 | func Float64FromInterfaceMap(key string, iMap map[string]interface{}, v *Float64Validation) (float64, error) { |
| 59 | inter, ok := ReadInterfaceMapValue(key, iMap) |
| 60 | if !ok { |
| 61 | val, err := ValidateFloat64Missing(v) |
| 62 | if err != nil { |
| 63 | return 0, errors.Wrap(err, key) |
| 64 | } |
| 65 | return val, nil |
| 66 | } |
| 67 | val, err := Float64(inter, v) |
| 68 | if err != nil { |
| 69 | return 0, errors.Wrap(err, key) |
| 70 | } |
| 71 | return val, nil |
| 72 | } |
| 73 | |
| 74 | func Float64FromStrMap(key string, sMap map[string]string, v *Float64Validation) (float64, error) { |
| 75 | valStr, ok := sMap[key] |
no test coverage detected