clip

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package clip provides functionality to read from and write to the clipboard.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrCannotRead is returned when data cannot be read to the clipboard.
	ErrCannotRead = errClip.Code("cannot_read").ErrorPref("cannot read from clipboard: %s")
	// ErrCannotWrite is returned when data cannot be written to the clipboard.
	ErrCannotWrite = errClip.Code("cannot_write").ErrorPref("cannot write to clipboard: %s")
)

Functions

This section is empty.

Types

type Clipper

type Clipper interface {
	ReadAll() ([]byte, error)
	WriteAll(value []byte) error
}

Clipper allows you to read from and write to the clipboard.

func NewClipboard

func NewClipboard() Clipper

NewClipboard creates a new Clipper.

Directories

Path Synopsis
Package fakeclip provides fake implementations of the clip.Clipper interface to be used for testing.
Package fakeclip provides fake implementations of the clip.Clipper interface to be used for testing.

Jump to

Keyboard shortcuts

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