]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/osinfo: use unix.ByteSliceToString
authorTobias Klauser <tklauser@distanz.ch>
Tue, 9 Aug 2022 08:15:27 +0000 (10:15 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 18 Aug 2022 16:15:06 +0000 (16:15 +0000)
commitc7c78f1a3a4c94043c140962f2916a69e466d255
tree609ff40d3674fddc73ef27ee8257af61a06c6b17
parent760c180d3bb2464b1e91402630c8f0d1e79180b3
cmd/internal/osinfo: use unix.ByteSliceToString

The golang.org/x/sys/unix package is already imported for Utsname and
Uname. Use ByteSliceToString from that package as well to replace the
locally defined utsString helper which serves the same purpose and
matches ByteSliceToString's implementation.

Change-Id: I5d9de186a5aeb1feed1387beedefbcd260fe22ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/415654
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/internal/osinfo/os_unix.go