pkg/textparse/promparse.go
func (p *PromParser) Help() ([]byte, []byte) {
	m := p.l.b[p.offsets[0]:p.offsets[1]]

	// Replacer causes allocations. Replace only when necessary.
	if strings.IndexByte(yoloString(p.text), byte('\\')) >= 0 {
		return m, []byte(helpReplacer.Replace(string(p.text)))
	}
	return m, p.text
}
func (p *PromParser) Help() ([]byte, []byte) {
	m := p.l.b[p.offsets[0]:p.offsets[1]]

	// Replacer causes allocations. Replace only when necessary.
	if strings.IndexByte(yoloString(p.text), byte('\\')) >= 0 {
		return m, []byte(helpReplacer.Replace(string(p.text)))
	}
	return m, p.text
}
func ( p * PromParser ) Help ( ) ( [ ] byte , [ ] byte ) { m := p . l . b [ p . offsets [ 0 ] : p . offsets [ 1 ] ] // Replacer causes allocations. Replace only when necessary. if strings . IndexByte ( yoloString ( p . text ) , byte ( '\\' ) ) >= 0 { return m , [ ] byte ( helpReplacer . Replace ( string ( p . text ) ) ) } return m , p . text }
// Help returns the metric name and help text in the current entry.
// Must only be called after Next returned a help entry.
// The returned byte slices become invalid after the next call to Next.
Help returns the metric name and help text in the current entry . Must only be called after Next returned a help entry . The returned byte slices become invalid after the next call to Next .