diff options
Diffstat (limited to 'get_windows.go')
| -rw-r--r-- | get_windows.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/get_windows.go b/get_windows.go new file mode 100644 index 0000000..9db8611 --- /dev/null +++ b/get_windows.go @@ -0,0 +1,13 @@ +package hostname + +// functions to import and export the protobuf +// data to and from config files + +import ( + "os" +) + +func osGetHostname() (string, error) { + hostname, err := os.Hostname() + return hostname, err +} |
