utils

package
v1.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeBytesToString added in v1.10.0

func SafeBytesToString(b []byte) string

SafeBytesToString takes a slice of bytes and sanitizes it for Prometheus label values. * Terminate the string at the first null byte. * Convert any invalid UTF-8 to "�".

func SafeDereference

func SafeDereference[T any](s ...*T) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL