clipboard

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteText added in v0.3.7

func WriteText(text string) error

WriteText writes text to the Linux clipboard.

Types

type Content

type Content struct {
	Text  string
	Image *string // base64 data URL, e.g. "data:image/png;base64,..."
}

Content represents a piece of clipboard content (text or image)

func Read

func Read() ([]Content, error)

Read reads text and image content from the Linux clipboard.

Jump to

Keyboard shortcuts

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