code: func IsProcessAlive(pid int) bool {
  	err := unix.Kill(pid, syscall.Signal(0))
  	if err == nil || err == unix.EPERM {
  		return true
  	}
  
  	return false
  }
docs: // IsProcessAlive returns true if process with a given pid is running.