code: func FamiliarMatch(pattern string, ref Reference) (bool, error) {
  	matched, err := path.Match(pattern, FamiliarString(ref))
  	if namedRef, isNamed := ref.(Named); isNamed && !matched {
  		matched, _ = path.Match(pattern, FamiliarName(namedRef))
  	}
  	return matched, err
  }
docs: // FamiliarMatch reports whether ref matches the specified pattern.
  // See https://godoc.org/path#Match for supported patterns.