mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
14 lines
223 B
Go
14 lines
223 B
Go
package host
|
|
|
|
func charsToString(ca [65]uint8) string {
|
|
s := make([]byte, len(ca))
|
|
var lens int
|
|
for ; lens < len(ca); lens++ {
|
|
if ca[lens] == 0 {
|
|
break
|
|
}
|
|
s[lens] = uint8(ca[lens])
|
|
}
|
|
return string(s[0:lens])
|
|
}
|