summaryrefslogtreecommitdiff
path: root/get.go
blob: 0395e98586c71bf49c064a6b1f7c06a0c6f5bd7b (plain)
1
2
3
4
5
6
7
8
9
package hostname

// returns the hostname
// hostname is always set to the best effort
// error is set if hostname isn't real
func Get() (string, error) {
	hostname, err := osGetHostname()
	return hostname, err
}