(obj Obj)
| 150 | } |
| 151 | |
| 152 | func GetThumb(obj Obj) (thumb string, ok bool) { |
| 153 | for { |
| 154 | switch o := obj.(type) { |
| 155 | case Thumb: |
| 156 | return o.Thumb(), true |
| 157 | case ObjUnwrap: |
| 158 | obj = o.Unwrap() |
| 159 | default: |
| 160 | return |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | func GetUrl(obj Obj) (url string, ok bool) { |
| 166 | for { |
no test coverage detected