提交 52a7258c 编写于 作者: W WAKAYAMA shirou

add net_freebsd.go as placeholder.

上级 5f2e6bce
......@@ -12,8 +12,8 @@ import (
"unsafe"
)
func HostInfo() (HostInfoStat, error) {
ret := HostInfoStat{}
func HostInfo() (*HostInfoStat, error) {
ret := &HostInfoStat{}
hostname, err := os.Hostname()
ret.Hostname = hostname
......
// +build freebsd
package gopsutil
import (
"errors"
)
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
return nil, errors.New("not implemented yet")
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册