| 1 | # Clipboard access for Go |
| 2 | |
| 3 | [](http://godoc.org/github.com/gopasspw/clipboard) |
| 4 | |
| 5 | Provide copying and pasting to the Clipboard for Go. |
| 6 | |
| 7 | ## Installation |
| 8 | |
| 9 | go get github.com/gopasspw/clipboard |
| 10 | |
| 11 | ## Platforms |
| 12 | |
| 13 | We aim to support all platforms that Go supports, as long as they provide a clipboard. |
| 14 | |
| 15 | The following platforms are know to work: |
| 16 | |
| 17 | * Darwin (macOS) |
| 18 | * Windows |
| 19 | * Linux, Unix (requires 'xclip', 'xsel' or 'wl-clipboard' commands to be installed) |
| 20 | |
| 21 | ## Commands |
| 22 | |
| 23 | paste shell command: |
| 24 | |
| 25 | go get github.com/gopasspw/clipboard/cmd/gopaste |
| 26 | # example: |
| 27 | gopaste > document.txt |
| 28 | |
| 29 | copy shell command: |
| 30 | |
| 31 | go get github.com/gopasspw/clipboard/cmd/gocopy |
| 32 | # example: |
| 33 | cat document.txt | gocopy |
| 34 | |
| 35 | ## License and Credit |
| 36 | |
| 37 | This package is licensed under the [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause). |
| 38 | It is a detached fork of github.com/atotto/clipboard. Since the origional repository has been inactive |
| 39 | for over 10 years, we decided to fork it and add some features and bug fixes. |
| 40 | |
| 41 | This repository is maintained to support the needs of [gopass](https://github.com/gopasspw/gopass) |
| 42 | password manager. It is not an exact drop-in replacement, but |
| 43 | we encourage everyone to use it as a replacement for the original package. |