clipboard

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToClipboard

func CopyToClipboard(text string) error

CopyToClipboard copies the given text to the system clipboard. It tries wl-copy first (Wayland), then falls back to xclip (X11). Returns an error if both fail.

func IsAvailable

func IsAvailable() bool

IsAvailable checks if clipboard functionality is available on the system

Types

This section is empty.

Jump to

Keyboard shortcuts

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