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

This enables using gopsutil in a codebase that gets built on other OSes than the ones supported. Instead of a build failure as before, due to the build tags, gopsutil will now throw an "not implemented" runtime error. Fixes #234.
18 lines
416 B
Go
18 lines
416 B
Go
// +build !darwin,!linux,!freebsd,!windows
|
|
|
|
package disk
|
|
|
|
import "github.com/shirou/gopsutil/internal/common"
|
|
|
|
func IOCounters() (map[string]IOCountersStat, error) {
|
|
return nil, common.ErrNotImplementedError
|
|
}
|
|
|
|
func Partitions(all bool) ([]PartitionStat, error) {
|
|
return []PartitionStat{}, common.ErrNotImplementedError
|
|
}
|
|
|
|
func Usage(path string) (*UsageStat, error) {
|
|
return nil, common.ErrNotImplementedError
|
|
}
|