add net_freebsd.go as placeholder.

pull/4/head
WAKAYAMA shirou 11 years ago
parent 5f2e6bceb0
commit 52a7258c36

@ -12,8 +12,8 @@ import (
"unsafe" "unsafe"
) )
func HostInfo() (HostInfoStat, error) { func HostInfo() (*HostInfoStat, error) {
ret := HostInfoStat{} ret := &HostInfoStat{}
hostname, err := os.Hostname() hostname, err := os.Hostname()
ret.Hostname = hostname ret.Hostname = hostname

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