(path tree.Path)
| 128 | } |
| 129 | |
| 130 | func (o Options) getCasterForPath(path tree.Path) (Cast, bool) { |
| 131 | for pattern, caster := range o.TypeCastMapping { |
| 132 | if path.Matches(pattern) { |
| 133 | return caster, true |
| 134 | } |
| 135 | } |
| 136 | return nil, false |
| 137 | } |
no test coverage detected