(key string, sMap map[string]string, v *Int32PtrValidation)
| 79 | } |
| 80 | |
| 81 | func Int32PtrFromStrMap(key string, sMap map[string]string, v *Int32PtrValidation) (*int32, error) { |
| 82 | valStr, ok := sMap[key] |
| 83 | if !ok || valStr == "" { |
| 84 | val, err := ValidateInt32PtrMissing(v) |
| 85 | if err != nil { |
| 86 | return nil, errors.Wrap(err, key) |
| 87 | } |
| 88 | return val, nil |
| 89 | } |
| 90 | val, err := Int32PtrFromStr(valStr, v) |
| 91 | if err != nil { |
| 92 | return nil, errors.Wrap(err, key) |
| 93 | } |
| 94 | return val, nil |
| 95 | } |
| 96 | |
| 97 | func Int32PtrFromStr(valStr string, v *Int32PtrValidation) (*int32, error) { |
| 98 | if valStr == "" { |
nothing calls this directly
no test coverage detected