clipboard

package
v0.20.6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(e *sdk.Extension)

Register adds clipboard's tool and shortcut to the extension.

Types

type ImageData

type ImageData struct {
	Data     string
	MimeType string
}

ImageData holds base64-encoded image data.

func ReadImage

func ReadImage() (*ImageData, error)

ReadImage reads an image from the macOS clipboard. Returns the image as base64-encoded ImageData, or an error if no image is available.

Directories

Path Synopsis
Clipboard extension binary.
Clipboard extension binary.

Jump to

Keyboard shortcuts

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