1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

add net_windows.go as placeholder.

This commit is contained in:
WAKAYAMA Shirou 2014-05-12 12:10:28 +09:00
parent 52a7258c36
commit 755f65b5f3
2 changed files with 13 additions and 2 deletions

View File

@ -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

11
net_windows.go Normal file
View File

@ -0,0 +1,11 @@
// +build windows
package gopsutil
import (
"errors"
)
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
return nil, errors.New("not implemented yet")
}