Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform interface {
// FindExecutable locates cmd using $PATH semantics.
FindExecutable(cmd string) (string, error)
// SendSignal delivers sig to pid. Returns an error if the process
// does not exist or the caller lacks permission.
SendSignal(pid int, sig os.Signal) error
// Kill is shorthand for SendSignal(pid, SIGKILL).
Kill(pid int) error
}
Platform abstracts OS-specific operations so the rest of the code base never imports syscall or os directly for process management.
Click to show internal directories.
Click to hide internal directories.