clipboard

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package clipboard provides system clipboard image reading.

Index

Constants

View Source
const MaxImageBytes = 10 * 1024 * 1024

MaxImageBytes is the maximum clipboard image size accepted (10 MB).

Variables

View Source
var ErrNoImage = errors.New("clipboard does not contain image data")

ErrNoImage is returned when the clipboard doesn't contain image data.

View Source
var ErrUnsupported = errors.New("clipboard image reading not supported on this platform")

ErrUnsupported is returned on platforms without clipboard image support.

Functions

func HasImage

func HasImage() bool

HasImage returns false on unsupported platforms.

func ReadImage

func ReadImage() ([]byte, string, error)

ReadImage returns ErrUnsupported on non-darwin platforms.

Types

This section is empty.

Jump to

Keyboard shortcuts

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