summaryrefslogtreecommitdiff
path: root/get.go
diff options
context:
space:
mode:
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
+}