Help us shape the future of Go! Take the 2026 Go Developer Survey

clipboard

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package clipboard is the platform clipboard adapter: pbcopy on macOS, wl-copy (preferred) or xclip on Linux, and clip on Windows. The payload is always passed via stdin so finding text is never shell-expanded.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(text string) error

Copy writes text to the OS clipboard via the platform-specific helper, passing the payload through stdin (argv only — text is never expanded by a shell). Returns the helper's exit error on failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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