robotgo/clipboard
2021-11-17 17:08:59 -04:00
..
cmd update clipboard and docs 2018-09-14 17:28:42 -04:00
example Update clipboard example code 2021-07-26 13:38:55 -04:00
clipboard_darwin.go gofmt to 1.17 build tag 2021-09-15 11:57:59 -04:00
clipboard_test.go Update godoc and README.md 2021-11-17 17:08:59 -04:00
clipboard_unix.go gofmt to 1.17 build tag 2021-09-15 11:57:59 -04:00
clipboard_windows.go gofmt to 1.17 build tag 2021-09-15 11:57:59 -04:00
clipboard.go update clipboard and docs 2018-09-14 17:28:42 -04: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