func New(b []byte, contentType string) Parser {
	mediaType, _, err := mime.ParseMediaType(contentType)
	if err == nil && mediaType == "application/openmetrics-text" {
		return NewOpenMetricsParser(b)
	}
	return NewPromParser(b)
}
New returns a new parser of the byte slice.
package textparse
import (
	"mime"
	"github.com/prometheus/prometheus/pkg/labels"
)
type Parser interface {
	Series() ([]byte, *int64, float64)
	Help() ([]byte, []byte)
	Type() ([]byte, MetricType)
	Unit() ([]byte, []byte)
	Comment() []byte
	Metric(l *labels.Labels) string
	Next() (Entry, error)
}