Back to godoc.org

Package clipboard

v1.8.6
Latest Go to latest
Published: Jul 26, 2019 | License: MIT | Module: github.com/justwatchcom/gopass

Index

Package Files

Variables

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