clipboard

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package clipboard reads text and images without requiring cgo in release binaries.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoImage = errors.New("no image on clipboard")

Functions

func ReadImage

func ReadImage() ([]byte, error)

ReadImage prefers copied image files on macOS, then native image data, as Codex CLI does. Linux requests image data from the active display clipboard.

func ReadText added in v1.3.0

func ReadText() (string, error)

ReadText reads plain text, discarding formatting from rich clipboard content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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