code: func parsePercentage(v string) (int64, error) {
  	if !strings.HasSuffix(v, "%") {
  		return 0, fmt.Errorf("percentage expected, got '%s'", v)
  	}
  	percentage, err := strconv.ParseInt(strings.TrimRight(v, "%"), 10, 0)
  	if err != nil {
  		return 0, fmt.Errorf("invalid number in percentage '%s'", v)
  	}
  	if percentage < 0 || percentage > 100 {
  		return 0, fmt.Errorf("percentage must be between 0 and 100")
  	}
  	return percentage, nil
  }
docs: // parsePercentage parses the percentage string to numeric value.