as per syscall package docs: this package is blocked. Code outside the standard Go repository must be ported to use the appropriate package in the golang.org/x/sys repository.
You can use golang.org/x/sys/windows, it has Process32First and Process32Next to list system processes.
source share