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/pkg/util/yolo.go

7 lines
268 B

package util //nolint:revive
import "unsafe"
func YoloBuf(s string) []byte {
return *((*[]byte)(unsafe.Pointer(&s))) //#nosec G103 -- This is used correctly; all uses of this function do not allow the mutable reference to escape -- nosemgrep: use-of-unsafe-block
}