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