code: func hasPathPrefix(x, y string) bool {
  	return x == y || strings.HasPrefix(x, y) && (strings.HasSuffix(y, "/") || strings.HasPrefix(x[len(y):], "/"))
  }
docs: // hasPathPrefix returns true if x == y or x == y + "/" + more