robotgo/clipboard
2017-06-11 19:45:54 +08:00
..
cmd Update clipboard 2017-06-11 19:07:58 +08:00
.travis.yml Add clipboard and TypeStr 2017-06-11 18:47:58 +08:00
clipboard_darwin.go Add clipboard and TypeStr 2017-06-11 18:47:58 +08:00
clipboard_test.go Update docs and Remove some test, wait debug 2017-06-11 19:45:54 +08:00
clipboard_unix.go Add clipboard and TypeStr 2017-06-11 18:47:58 +08:00
clipboard_windows.go Add clipboard and TypeStr 2017-06-11 18:47:58 +08:00
clipboard.go Add clipboard and TypeStr 2017-06-11 18:47:58 +08:00
example_test.go Update clipboard 2017-06-11 19:07:58 +08:00
LICENSE Add clipboard and TypeStr 2017-06-11 18:47:58 +08:00
README.md Update clipboard README.md 2017-06-11 19:23:04 +08:00

This directory based on clipboard.

Build Status GoDoc

Clipboard for Go

Provide copying and pasting to the Clipboard for Go.

Build:

$ go get github.com/atotto/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 github.com/atotto/clipboard/cmd/gopaste
$ # example:
$ gopaste > document.txt

copy shell command:

$ go get github.com/atotto/clipboard/cmd/gocopy
$ # example:
$ cat document.txt | gocopy