package clipper

Import Path
	github.com/zyedidia/clipper (on go.dev)

Dependency Relation
	imports 6 packages, and imported by one package


Package-Level Type Names (total 14)
/* sort by: | */
Init initializes the clipboard and returns an error if it is not accessible ReadAll returns the contents of the clipboard register 'reg' WriteAll writes 'p' to the clipboard register 'reg' *Custom *File *Internal *Pb *Snarf *Termux *Wayland *Wsl *Xclip *Xsel func GetClipboard(clips ...Clipboard) (clip Clipboard, err error) func GetClipboard(clips ...Clipboard) (clip Clipboard, err error)
Name string (*Custom) Init() error (*Custom) ReadAll(reg string) ([]byte, error) (*Custom) WriteAll(reg string, p []byte) error *Custom : Clipboard
Reg string (*ErrInvalidReg) Error() string *ErrInvalidReg : error
Dir string (*File) Init() error (*File) ReadAll(reg string) ([]byte, error) (*File) WriteAll(reg string, p []byte) error *File : Clipboard
(*Internal) Init() error (*Internal) ReadAll(reg string) ([]byte, error) (*Internal) WriteAll(reg string, p []byte) error *Internal : Clipboard
Clip Clipboard (*Multi) Init() (*Multi) IsValid(reg string, system []byte, ncursors int) bool (*Multi) ReadCursor(reg string, num, ncursors int) ([]byte, error) (*Multi) WriteCursor(reg string, p []byte, num, ncursors int) error
( MultiErr) Error() string MultiErr : error
pbpaste/pbcopy for macos (*Pb) Init() error (*Pb) ReadAll(reg string) ([]byte, error) (*Pb) WriteAll(reg string, p []byte) error *Pb : Clipboard
snarf for plan9 (*Snarf) Init() error (*Snarf) ReadAll(reg string) ([]byte, error) (*Snarf) WriteAll(reg string, p []byte) error *Snarf : Clipboard
termux-clipboard for Android Termux (*Termux) Init() error (*Termux) ReadAll(reg string) ([]byte, error) (*Termux) WriteAll(reg string, p []byte) error *Termux : Clipboard
wl-paste/wl-copy for linux Wayland (*Wayland) Init() error (*Wayland) ReadAll(reg string) ([]byte, error) (*Wayland) WriteAll(reg string, p []byte) error *Wayland : Clipboard
powershell.exe/clip.exe for WSL (*Wsl) Init() error (*Wsl) ReadAll(reg string) ([]byte, error) (*Wsl) WriteAll(reg string, p []byte) error *Wsl : Clipboard
xclip for linux X (*Xclip) Init() error (*Xclip) ReadAll(reg string) ([]byte, error) (*Xclip) WriteAll(reg string, p []byte) error *Xclip : Clipboard
xsel for linux X (*Xsel) Init() error (*Xsel) ReadAll(reg string) ([]byte, error) (*Xsel) WriteAll(reg string, p []byte) error *Xsel : Clipboard
Package-Level Functions (only one)
GetClipboard iterates through the given clipboards and returns the first one that works.
Package-Level Variables (only one)
Package-Level Constants (total 2)
const RegClipboard = "clipboard"
const RegPrimary = "primary"