func (m MetricType) validateValue(value string) error {
	switch m {
	case MetricTypeGauge, MetricTypeAbsolute:
		return validateValue(value)
	default:
		return fmt.Errorf("unknown metric type %q", m)
	}
}
// validateValue checks if the supplied metric value fits the requirements
// of its expected type.
validateValue checks if the supplied metric value fits the requirements
of its expected type.
// validateValue checks if the supplied metric value fits the requirements // of its expected type .
func (m MetricType) validateValue(value string) error {
	switch m {
	case MetricTypeGauge, MetricTypeAbsolute:
		return validateValue(value)
	default:
		return fmt.Errorf("unknown metric type %q", m)
	}
}
func ( m MetricType ) validateValue ( value string ) error { switch m { case MetricTypeGauge , MetricTypeAbsolute : return validateValue ( value ) default : return fmt . Errorf ( " " , m ) } }
validateValue checks if the supplied metric value fits the requirements
of its expected type.
validateValue checks if the supplied metric value fits the requirements of its expected type .