* Replace `github.com/shirou/gopsutil/v3` to v4
PR #3925 only added the new v4 dependency into our `go.mod` file. The
actual usages in the source code were not updated to use the new v4
version.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* Tidy `go.mod` correctly
One `require` section for direct dependencies; Another `require` section
for indirect dependencies.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
---------
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>