From 755f65b5f3e1d7cfaf5b6b13605108af022b3157 Mon Sep 17 00:00:00 2001 From: WAKAYAMA Shirou Date: Mon, 12 May 2014 12:10:28 +0900 Subject: [PATCH] add net_windows.go as placeholder. --- host_windows.go | 4 ++-- net_windows.go | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 net_windows.go diff --git a/host_windows.go b/host_windows.go index 6d79d81b..b3eea4c2 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 00000000..329b5446 --- /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") +}