code: func maskTrailingDash(name string) string {
  	if strings.HasSuffix(name, "-") {
  		return name[:len(name)-2] + "a"
  	}
  	return name
  }
docs: // maskTrailingDash replaces the final character of a string with a subdomain safe
  // value if is a dash.