Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

internal

v1.47.0
go.opentelemetry.io/otel/sdk/metric/internal

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

2 matches

Top ↑

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.

Dependency graph