16 lines
342 B
Go
16 lines
342 B
Go
//go:build !linux
|
|
|
|
package system
|
|
|
|
import "fmt"
|
|
|
|
// GetInfo returns empty system info on non-Linux platforms.
|
|
func GetInfo(_ string) SystemInfo {
|
|
return SystemInfo{}
|
|
}
|
|
|
|
// GetTotalMemoryMB is not available on non-Linux platforms.
|
|
func GetTotalMemoryMB() (int, error) {
|
|
return 0, fmt.Errorf("/proc/meminfo not available on this platform")
|
|
}
|