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:
parent
52a7258c36
commit
755f65b5f3
@ -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
11
net_windows.go
Normal file
@ -0,0 +1,11 @@
|
||||
// +build windows
|
||||
|
||||
package gopsutil
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
|
||||
return nil, errors.New("not implemented yet")
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user