Provide copying and pasting to the Clipboard for the Go programming language.
This particular project is a fork of clipboard for the purpose of implementing features necessary for CDK and CTK.
Any changes made here that are suitable for the upstream project are intended to be pushed back upstream and eventually not require this project at all. In the meantime, here we are!
> go get github.com/kckrinke/go-clipboard
- OSX
- Windows 7 (probably work on other Windows)
- Linux, Unix (requires 'xclip' or 'xsel' command to be installed)
- Text string only
- UTF-8 text encoding only (no conversion)
paste shell command:
> go get github.com/kckrinke/go-clipboard/cmd/gopaste
> # example:
> gopaste > document.txt
copy shell command:
> go get github.com/kckrinke/go-clipboard/cmd/gocopy
> # example:
> cat document.txt | gocopy
- Use XGB instead of 'xclip' or 'xsel'
This project has a permissive, open source LICENSE.
Copyright (c) 2020 Kevin C. Krinke. All rights reserved.
Copyright (c) 2013 Ato Araki. All rights reserved.