(obj Obj)
| 163 | } |
| 164 | |
| 165 | func GetUrl(obj Obj) (url string, ok bool) { |
| 166 | for { |
| 167 | switch o := obj.(type) { |
| 168 | case URL: |
| 169 | return o.URL(), true |
| 170 | case ObjUnwrap: |
| 171 | obj = o.Unwrap() |
| 172 | default: |
| 173 | return |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | func GetProvider(obj Obj) (string, bool) { |
| 179 | for { |
no test coverage detected