summaryrefslogtreecommitdiff
path: root/get.go
diff options
context:
space:
mode:
Diffstat (limited to 'get.go')
-rw-r--r--get.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/get.go b/get.go
index 8028bd1..0395e98 100644
--- a/get.go
+++ b/get.go
@@ -1,8 +1,8 @@
package hostname
-// functions to import and export the protobuf
-// data to and from config files
-
+// returns the hostname
+// hostname is always set to the best effort
+// error is set if hostname isn't real
func Get() (string, error) {
hostname, err := osGetHostname()
return hostname, err