code: func IsValidPathSegmentName(name string) []string {
  	for _, illegalName := range NameMayNotBe {
  		if name == illegalName {
  			return []string{fmt.Sprintf(`may not be '%s'`, illegalName)}
  		}
  	}
  
  	var errors []string
  	for _, illegalContent := range NameMayNotContain {
  		if strings.Contains(name, illegalContent) {
  			errors = append(errors, fmt.Sprintf(`may not contain '%s'`, illegalContent))
  		}
  	}
  
  	return errors
  }
docs: // IsValidPathSegmentName validates the name can be safely encoded as a path segment