Skip to content

Commit

Permalink
add net_freebsd.go as placeholder.
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed May 12, 2014
1 parent 5f2e6bc commit 52a7258
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host_freebsd.go
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions net_freebsd.go
@@ -0,0 +1,11 @@
// +build freebsd

package gopsutil

import (
"errors"
)

func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
return nil, errors.New("not implemented yet")
}

0 comments on commit 52a7258

Please sign in to comment.