clipboard

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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"
	NullClipboard = "null-clipboard"
)

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 Null added in v1.1.1

type Null struct {
	// contains filtered or unexported fields
}

func (Null) Get added in v1.1.1

func (n Null) Get() ([]byte, error)

func (Null) Name added in v1.1.1

func (n Null) Name() string

func (Null) Set added in v1.1.1

func (n Null) Set(data []byte) error

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