code: func IsValidPathSegmentName(name string) (bool, string) {
  	for _, illegalName := range NameMayNotBe {
  		if name == illegalName {
  			return false, fmt.Sprintf(`name may not be %q`, illegalName)
  		}
  	}
  
  	for _, illegalContent := range NameMayNotContain {
  		if strings.Contains(name, illegalContent) {
  			return false, fmt.Sprintf(`name may not contain %q`, illegalContent)
  		}
  	}
  
  	return true, ""
  }
docs: // IsValidPathSegmentName validates the name can be safely encoded as a path segment