No description
- Go 92.4%
- Makefile 7.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github/workflows | ||
| cmd | ||
| debian | ||
| .gitignore | ||
| .golangci.yml | ||
| clipboard.go | ||
| clipboard_darwin.go | ||
| clipboard_darwin_test.go | ||
| clipboard_plan9.go | ||
| clipboard_test.go | ||
| clipboard_unix.go | ||
| clipboard_windows.go | ||
| example_test.go | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
Clipboard access for Go
Provide copying and pasting to the Clipboard for Go.
Installation
go get github.com/gopasspw/clipboard
Platforms
We aim to support all platforms that Go supports, as long as they provide a clipboard.
The following platforms are know to work:
- Darwin (macOS)
- Windows
- Linux, Unix (requires 'xclip', 'xsel' or 'wl-clipboard' commands to be installed)
Commands
paste shell command:
go get github.com/gopasspw/clipboard/cmd/gopaste
# example:
gopaste > document.txt
copy shell command:
go get github.com/gopasspw/clipboard/cmd/gocopy
# example:
cat document.txt | gocopy
License and Credit
This package is licensed under the BSD 3-Clause License. It is a detached fork of github.com/atotto/clipboard. Since the origional repository has been inactive for over 10 years, we decided to fork it and add some features and bug fixes.
This repository is maintained to support the needs of gopass password manager. It is not an exact drop-in replacement, but we encourage everyone to use it as a replacement for the original package.