vcaesar 6f13aded25 Update test 7 年之前
..
cmd 4a6bca37d8 Update README.md and clipboard 7 年之前
README.md 5520eb13ed Update clipboard README.md 7 年之前
clipboard.go 861396b054 Add clipboard and TypeStr 7 年之前
clipboard_darwin.go 861396b054 Add clipboard and TypeStr 7 年之前
clipboard_test.go 255e47b376 Update test name 7 年之前
clipboard_unix.go 5a80dd3332 Update clipboard and add CYGWIN 7 年之前
clipboard_windows.go 861396b054 Add clipboard and TypeStr 7 年之前
example_test.go 6f13aded25 Update test 7 年之前

README.md

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