Back to

Package clipboard

Latest Go to latest
Published: Jul 26, 2019 | License: MIT | Module:


Package Files


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")

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier