(key string)
| 60 | } |
| 61 | |
| 62 | func (p Problem) getURI(key string) string { |
| 63 | f, found := p[key] |
| 64 | if found { |
| 65 | if typ, ok := f.(string); ok { |
| 66 | if !isEmptyTypeURI(typ) { |
| 67 | return typ |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | return "" |
| 73 | } |
| 74 | |
| 75 | // Updates "type" field to absolute URI, recursively. |
| 76 | func (p Problem) updateURIsToAbs(ctx *Context) { |
no test coverage detected