Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/vendor/github.com/grafana/dskit/internal/slices/slices.go

11 lines
163 B

package slices
func Contains[T comparable](haystack []T, needle T) bool {
for _, e := range haystack {
if e == needle {
return true
}
}
return false
}