Fix SA4032 and SA3000 which are flagged after bumping to go1.23rc1 and v0.5.0-rc1 of go-tools. Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
Signed-off-by: saltbo <saltbo@foxmail.com>
Signed-off-by: Stephen Augustus <foo@auggie.dev>
`filepath.Walk` recursively traverses every dir, which is not what is needed for getPids. Instead only read the list of dirs in the top level of `/proc`. ``` benchmark old ns/op new ns/op delta BenchmarkGetPids-4 868684 195522 -77.49% ```