package clipper
Import Path
github.com/zyedidia/clipper (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Involved Source Files
clipboard.go
clipboards_other.go
custom.go
detect.go
file.go
internal.go
multi.go
pb.go
snarf.go
termux.go
wayland.go
wsl.go
xclip.go
xsel.go
Package-Level Type Names (total 14)
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
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
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
Package-Level Functions (only one)
GetClipboard iterates through the given clipboards and returns the first one that works.
Package-Level Variables (only one)
var Clipboards []Clipboard
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |