diff options
| author | Jeff Carr <[email protected]> | 2025-03-22 02:27:07 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-22 02:27:07 -0500 |
| commit | beb811c51d2d59fa0ec66189ec44dae066004299 (patch) | |
| tree | 8257710b0faea6382a61f66539bf0779f76be44a /get_linux.go | |
day1v0.0.1
Diffstat (limited to 'get_linux.go')
| -rw-r--r-- | get_linux.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/get_linux.go b/get_linux.go new file mode 100644 index 0000000..9db8611 --- /dev/null +++ b/get_linux.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 +} |
