diff options
Diffstat (limited to 'src/os/sys.go')
-rw-r--r-- | src/os/sys.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/os/sys.go b/src/os/sys.go new file mode 100644 index 0000000..28b0f6b --- /dev/null +++ b/src/os/sys.go @@ -0,0 +1,10 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package os + +// Hostname returns the host name reported by the kernel. +func Hostname() (name string, err error) { + return hostname() +} |