diff --git a/host_windows.go b/host_windows.go index 6d79d81..b3eea4c 100644 --- a/host_windows.go +++ b/host_windows.go @@ -13,8 +13,8 @@ var ( procGetTickCount = modkernel32.NewProc("GetTickCount") ) -func HostInfo() (HostInfoStat, error) { - ret := HostInfoStat{} +func HostInfo() (*HostInfoStat, error) { + ret := &HostInfoStat{} hostname, err := os.Hostname() if err != nil { return ret, err diff --git a/net_windows.go b/net_windows.go new file mode 100644 index 0000000..329b544 --- /dev/null +++ b/net_windows.go @@ -0,0 +1,11 @@ +// +build windows + +package gopsutil + +import ( + "errors" +) + +func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) { + return nil, errors.New("not implemented yet") +}