(path Path)
| 158 | } |
| 159 | |
| 160 | func (o Options) getCasterForPath(path Path) (Cast, bool) { |
| 161 | for pattern, caster := range o.TypeCastMapping { |
| 162 | if path.matches(pattern) { |
| 163 | return caster, true |
| 164 | } |
| 165 | } |
| 166 | return nil, false |
| 167 | } |
no test coverage detected