func Hostname() (name string, err Error) { s, e := syscall.ComputerName() if e != 0 { return "", NewSyscallError("ComputerName", e) } return s, nil }
func main() { name, _ := syscall.ComputerName() println(name) }