summaryrefslogtreecommitdiff
path: root/get.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-22 02:27:07 -0500
committerJeff Carr <[email protected]>2025-03-22 02:27:07 -0500
commitbeb811c51d2d59fa0ec66189ec44dae066004299 (patch)
tree8257710b0faea6382a61f66539bf0779f76be44a /get.go
day1v0.0.1
Diffstat (limited to 'get.go')
-rw-r--r--get.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/get.go b/get.go
new file mode 100644
index 0000000..8028bd1
--- /dev/null
+++ b/get.go
@@ -0,0 +1,9 @@
+package hostname
+
+// functions to import and export the protobuf
+// data to and from config files
+
+func Get() (string, error) {
+ hostname, err := osGetHostname()
+ return hostname, err
+}