Documentation
¶
Overview ¶
Package clipboard writes text to the system clipboard by shelling out to the platform's clipboard utility (US-009, #125). It deliberately avoids any cgo or third-party dependency: it probes for the standard command-line tools (pbcopy on macOS, wl-copy / xclip / xsel on Linux) and pipes text to the first one found. When no utility is available it reports ErrUnavailable so the caller can degrade gracefully (e.g. print the text instead).
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrUnavailable is returned by Copy when no supported clipboard utility is found on the host, so the caller can fall back to printing the content.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.