pkg/runtime/uname_linux.go
func Uname() string {
	buf := syscall.Utsname{}
	err := syscall.Uname(&buf)
	if err != nil {
		panic("syscall.Uname failed: " + err.Error())
	}

	str := "(" + charsToString(buf.Sysname[:])
	str += " " + charsToString(buf.Release[:])
	str += " " + charsToString(buf.Version[:])
	str += " " + charsToString(buf.Machine[:])
	str += " " + charsToString(buf.Nodename[:])
	str += " " + charsToString(buf.Domainname[:]) + ")"
	return str
}
func Uname() string {
	buf := syscall.Utsname{}
	err := syscall.Uname(&buf)
	if err != nil {
		panic("syscall.Uname failed: " + err.Error())
	}

	str := "(" + charsToString(buf.Sysname[:])
	str += " " + charsToString(buf.Release[:])
	str += " " + charsToString(buf.Version[:])
	str += " " + charsToString(buf.Machine[:])
	str += " " + charsToString(buf.Nodename[:])
	str += " " + charsToString(buf.Domainname[:]) + ")"
	return str
}
func Uname ( ) string { buf := syscall . Utsname { } err := syscall . Uname ( & buf ) if err != nil { panic ( " " + err . Error ( ) ) } str := " " + charsToString ( buf . Sysname [ : ] ) str += " " + charsToString ( buf . Release [ : ] ) str += " " + charsToString ( buf . Version [ : ] ) str += " " + charsToString ( buf . Machine [ : ] ) str += " " + charsToString ( buf . Nodename [ : ] ) str += " " + charsToString ( buf . Domainname [ : ] ) + " " return str }
// Uname returns the uname of the host machine.
Uname returns the uname of the host machine .