FamiliarString returns the familiar string representation for the given reference, familiarizing if needed.
(ref Reference)
| 25 | // FamiliarString returns the familiar string representation |
| 26 | // for the given reference, familiarizing if needed. |
| 27 | func FamiliarString(ref Reference) string { |
| 28 | if nn, ok := ref.(normalizedNamed); ok { |
| 29 | return nn.Familiar().String() |
| 30 | } |
| 31 | return ref.String() |
| 32 | } |
| 33 | |
| 34 | // FamiliarMatch reports whether ref matches the specified pattern. |
| 35 | // See https://godoc.org/path#Match for supported patterns. |
searching dependent graphs…