gopsutil
gopsutil copied to clipboard
Missing FQDN/hostname option for windows
Missing FQDN option for windows:
Example implementation: https://github.com/elastic/go-sysinfo/blob/main/providers/windows/host_windows.go#L88C44-L88C81
os.Hostname() don't return full hostname on windows
Indeed, this might be a good feature to have. And it looks like it could be implemented on all platforms. Thanks for the suggestion.
might make sense to introduce a FQDN() function instead of changing the Hostname()
might be interesting for that feature: https://github.com/Showmax/go-fqdn/blob/master/fqdn.go