clipboard

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read() (string, error)

Read returns the current system clipboard contents. On Linux/Wayland it uses wl-paste, on Linux/X11 it uses xclip, on macOS it uses pbpaste.

func Write

func Write(text string) error

Write sets the system clipboard to the given text. On Linux/Wayland it uses wl-copy, on Linux/X11 it uses xclip, on macOS it uses pbcopy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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