1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-27 22:49:15 +02:00

Use ByteSliceToString from golang.org/x/sys/unix (#2924)

Use unix.ByteSliceToString to convert Utsname []byte fields to strings.

This also allows to drop the charsToString helper which serves the same
purpose and matches ByteSliceToString's implementation.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
Tobias Klauser
2022-05-26 16:31:35 +02:00
committed by GitHub
parent 7458aa961b
commit 4155b35624
3 changed files with 5 additions and 40 deletions

View File

@@ -19,7 +19,6 @@ package resource // import "go.opentelemetry.io/otel/sdk/resource"
var (
Uname = uname
CharsToString = charsToString
GetFirstAvailableFile = getFirstAvailableFile
)