clipboard

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XClip       = "xclip"
	XSel        = "xsel"
	WlClipboard = "wl-clipboard"
	Termux      = "termux"
	WindowsNT10 = "nt10"
	MasOsStd    = "masos-std"
)

Variables

View Source
var ErrUnimplementedClipboardManager = errors.New("unimplemented clipboard wrapper")

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Get() ([]byte, error)
	Set(data []byte) error
	Name() string
}

func New

func New() Manager

type ThreadSafe

type ThreadSafe struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewThreadSafe

func NewThreadSafe() *ThreadSafe

func (*ThreadSafe) Get

func (t *ThreadSafe) Get() ([]byte, error)

func (*ThreadSafe) Name

func (t *ThreadSafe) Name() string

func (*ThreadSafe) Set

func (t *ThreadSafe) Set(data []byte) error

Jump to

Keyboard shortcuts

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