robotgo/clipboard
2018-08-14 07:18:14 -04:00
..
cmd Update README.md and clipboard 2017-06-16 20:01:39 +08:00
example update clipboard example 2018-07-13 18:38:29 +08:00
clipboard_darwin.go Add clipboard and TypeStr 2017-06-11 18:47:58 +08:00
clipboard_test.go Update test name 2017-09-24 12:47:49 +08:00
clipboard_unix.go update code style and move scale to win_sys 2018-08-14 07:18:14 -04:00
clipboard_windows.go fix windows clipboard memory leak 2018-07-12 22:38:39 +08:00
clipboard.go 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