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

clipboard

package
v0.19.13 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const MaxOSC52EncodedLength = 100_000

Variables

This section is empty.

Functions

func CopyToClipboard

func CopyToClipboard(text string) error

func EmitOSC52

func EmitOSC52(text string, output io.Writer) bool

func IsWaylandSession

func IsWaylandSession(getenv func(string) string) bool

Types

type Image

type Image struct {
	Bytes    []byte
	MimeType string
}

Image is upstream utils/clipboard-image.ts ClipboardImage.

func ReadImage

func ReadImage() *Image

ReadImage reads clipboard images without a native addon. Linux command paths retain upstream order; macOS uses AppKit through its installed script runner.

Jump to

Keyboard shortcuts

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