prometheus/model/labels
Bryan Boreham a3e02f35d6 labels: extract common code between slice and stringlabels
This reduces bulk and should avoid issues if a fix is made in one file
and not the other.

A few methods now call `Range()` instead of `range`, but nothing
performance-sensitive.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-11-17 18:20:03 +00:00
..
labels_common.go labels: extract common code between slice and stringlabels 2023-11-17 18:20:03 +00:00
labels_stringlabels.go labels: extract common code between slice and stringlabels 2023-11-17 18:20:03 +00:00
labels_test.go ci(lint): enable godot; append dot at the end of comments 2023-10-31 19:53:38 +02:00
labels.go labels: extract common code between slice and stringlabels 2023-11-17 18:20:03 +00:00
matcher_test.go feat: dont compile regex matcher if we know its a literal (#12434) 2023-06-07 21:54:30 +01:00
matcher.go
regexp_test.go Allow downstream projects to use faster regexp (#10251) 2022-02-08 11:03:20 +01:00
regexp.go feat: dont compile regex matcher if we know its a literal (#12434) 2023-06-07 21:54:30 +01:00
test_utils.go labels: use ScratchBuilder in ReadLabels 2022-12-19 15:22:09 +00:00