platform

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

func Default

func Default() Platform

Default returns the Platform implementation for the current OS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL