internal
v1.47.0
go.opentelemetry.io/otel/sdk/metric/internal
Documentation
pkg.go.dev ↗Package internal provides internal functionality for the sdk/metric package.
Package internal provides internal functionality for the metric package.
Functions
ReuseSlice
func ReuseSlice[T any](slice []T, n int) []T
ReuseSlice returns a zeroed view of slice if its capacity is greater than or equal to n. Otherwise, it returns a new []T with capacity equal to n.