hostname2/get_windows.go

14 lines
212 B
Go

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
}