Search and commands

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

Type to search packages.

attribute

v1.47.0
go.opentelemetry.io/otel/attribute/internal

Documentation

pkg.go.dev ↗

Table of contents

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

3 matches

Top ↑

Package attribute provide several helper functions for some commonly used logic of processing attributes.

Functions

AsSlice

func AsSlice[T sliceElem](v any) []T

AsSlice converts an array into a slice with the same elements.

SliceValue

func SliceValue[T sliceElem](v []T) any

SliceValue converts a slice into an array with the same elements.

Dependency graph