// HasMetric returns true if the registry already has a metric of the specified name
HasMetric returns true if the registry already has a metric of the specified name
// HasMetric returns true if the registry already has a metric of the specified name
func (r *PCPRegistry) HasMetric(name string) bool {
	r.metricslock.RLock()
	defer r.metricslock.RUnlock()
	_, present := r.metrics[name]
	return present
}
func ( r * PCPRegistry ) HasMetric ( name string ) bool { r . metricslock . RLock ( ) defer r . metricslock . RUnlock ( ) _ , present := r . metrics [ name ] return present }
HasMetric returns true if the registry already has a metric of the specified name
HasMetric returns true if the registry already has a metric of the specified name