Return some human-readable path for this object, even if it's just the OID.
()
| 182 | // Return some human-readable path for this object, even if it's just |
| 183 | // the OID. |
| 184 | func (p *Path) BestPath() string { |
| 185 | path := p.Path() |
| 186 | if path != "" { |
| 187 | return path |
| 188 | } |
| 189 | |
| 190 | return p.OID.String() |
| 191 | } |
| 192 | |
| 193 | func (p *Path) String() string { |
| 194 | path := p.Path() |
no test coverage detected