You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/internal/common
Bryce Kahle d753f78612
use VERSION_ID from os-release
`VERSION_ID` is more appropriate for scripts and other usages, since `VERSION` can contain spaces and codenames

from `os-release` manpage:
```
VERSION=
           A string identifying the operating system version, excluding
           any OS name information, possibly including a release code
           name, and suitable for presentation to the user. This field
           is optional.

           Examples: "VERSION=17", "VERSION="17 (Beefy Miracle)"".

 VERSION_ID=
           A lower-case string (mostly numeric, no spaces or other
           characters outside of 0–9, a–z, ".", "_" and "-") identifying
           the operating system version, excluding any OS name
           information or release code name, and suitable for processing
           by scripts or usage in generated filenames. This field is
           optional.

           Examples: "VERSION_ID=17", "VERSION_ID=11.04".
```
1 year ago
..
binary.go fix lint 2 years ago
common.go chore: replace deprecated ioutil package to os and io 2 years ago
common_darwin.go refactor: remove unnecessary exec.LookPath calls 3 years ago
common_freebsd.go refactor: remove unnecessary exec.LookPath calls 3 years ago
common_linux.go use VERSION_ID from os-release 1 year ago
common_netbsd.go cpu && host: fix compile time errors 2 years ago
common_openbsd.go refactor: remove unnecessary exec.LookPath calls 3 years ago
common_test.go apply code review 2 years ago
common_unix.go refactor: remove unnecessary exec.LookPath calls 3 years ago
common_windows.go fix lint 2 years ago
endian.go fix(net,linux): move IsLittleEndian to internal 3 years ago
sleep.go [common]: fix potential leak on Sleep. 2 years ago
sleep_test.go gofumpt 4 years ago
warnings.go code review 3 years ago