clipboard

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotSupported is returned when the clipboard is not accessible
	ErrNotSupported = fmt.Errorf("WARNING: No clipboard available. Install xsel or xclip or use -p to print to console")
)

Functions

func Clear

func Clear(ctx context.Context, checksum string, force bool) error

Clear will attempt to erase the clipboard

func CopyTo

func CopyTo(ctx context.Context, name string, content []byte) error

CopyTo copies the given data to the clipboard and enqueues automatic clearing of the clipboard

Types

This section is empty.

Jump to

Keyboard shortcuts

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