diff options
Diffstat (limited to 'internal/io/fs/utils.go')
| -rw-r--r-- | internal/io/fs/utils.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/io/fs/utils.go b/internal/io/fs/utils.go new file mode 100644 index 0000000..106b58a --- /dev/null +++ b/internal/io/fs/utils.go @@ -0,0 +1,12 @@ +package fs + +import "os" + +// getHostname returns the system hostname +func getHostname() string { + hostname, err := os.Hostname() + if err != nil { + return "unknown" + } + return hostname +}
\ No newline at end of file |
