We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f595ac6 + 85a216b commit 0df7b91Copy full SHA for 0df7b91
expfmt/text_parse.go
@@ -48,8 +48,10 @@ func (e ParseError) Error() string {
48
return fmt.Sprintf("text format parsing error in line %d: %s", e.Line, e.Msg)
49
}
50
51
-// TextParser is used to parse the simple and flat text-based exchange format. Its
52
-// zero value is ready to use.
+// TextParser is used to parse the simple and flat text-based exchange format.
+//
53
+// TextParser instances must be created with NewTextParser, the zero value of
54
+// TextParser is invalid.
55
type TextParser struct {
56
metricFamiliesByName map[string]*dto.MetricFamily
57
buf *bufio.Reader // Where the parsed input is read through.
0 commit comments