process
process copied to clipboard
process is a simple Go package for working with unix processes.
Because in Linux, when no tty, the value is "?" not "??", I didn't test it in other platform, but I think comparing it with the leading "?" is better...
In this line, FindByName search the name in `ps` output: https://github.com/radovskyb/process/blob/19aa1db15317c63efd965f42d168f1885abc5e35/process.go#L230 but the output already have `ToLower` https://github.com/radovskyb/process/blob/19aa1db15317c63efd965f42d168f1885abc5e35/process.go#L224 So if you search a process name with capital letters, It will...