diff --git a/proc.go b/proc.go index 441cb0d..00dcc73 100644 --- a/proc.go +++ b/proc.go @@ -8,9 +8,8 @@ import ( "strings" ) -func GetProcessPIDs(name string) ([]int, error) { - var pids []int - +// GetProcessPIDs returns a list of PIDs found for a process. +func GetProcessPIDs(name string) (pids []int, err error) { dir, err := os.ReadDir("/proc/") if err != nil { return nil, err