summaryrefslogtreecommitdiff
path: root/get.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-22 08:30:15 -0500
committerJeff Carr <[email protected]>2025-03-22 08:30:15 -0500
commit3dd6affd6fde2f0af23b35e7014ba59b6233320a (patch)
treebf9eb38cb1072af2119c4c3c9d0acd797ed9a1cb /get.go
parent57706020c1a01b16ff37ad4bb33aa4e80e327714 (diff)
more hostname thingsv0.0.2
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