Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 682 Bytes

README.md

File metadata and controls

40 lines (24 loc) · 682 Bytes

Clipboard for Go

Provide copying and pasting to the Clipboard for Go.

Build:

$ go get pkg.nimblebun.works/clipboard

Platforms:

  • OSX
  • Windows 7 (probably work on other Windows)
  • Linux, Unix (requires 'xclip' or 'xsel' command to be installed)

Document:

Notes:

  • Text string only
  • UTF-8 text encoding only (no conversion)

TODO:

  • Clipboard watcher(?)

Commands:

paste shell command:

$ go get pkg.nimblebun.works/clipboard/cmd/gopaste
$ # example:
$ gopaste > document.txt

copy shell command:

$ go get pkg.nimblebun.works/clipboard/cmd/gocopy
$ # example:
$ cat document.txt | gocopy