pkg.re/essentialkaos/ek@v12.36.0+incompatible/system/info_linux_basic.go (about) 1 // +build linux 2 // +build 386 arm64 amd64 3 4 package system 5 6 // ////////////////////////////////////////////////////////////////////////////////// // 7 // // 8 // Copyright (c) 2021 ESSENTIAL KAOS // 9 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 10 // // 11 // ////////////////////////////////////////////////////////////////////////////////// // 12 13 // byteSliceToString convert byte slice to string 14 func byteSliceToString(s [65]int8) string { 15 result := "" 16 17 for _, r := range s { 18 if r == 0 { 19 break 20 } 21 22 result += string(rune(r)) 23 } 24 25 return result 26 }