meminfo_unsupported.go 250 B

12345678910
  1. //go:build !linux && !windows
  2. package meminfo
  3. import "errors"
  4. // readMemInfo is not supported on platforms other than linux and windows.
  5. func readMemInfo() (*Memory, error) {
  6. return nil, errors.New("platform and architecture is not supported")
  7. }