README.md

 1[![Build Status](https://travis-ci.org/atotto/clipboard.svg?branch=master)](https://travis-ci.org/atotto/clipboard)
 2
 3[![GoDoc](https://godoc.org/github.com/atotto/clipboard?status.svg)](http://godoc.org/github.com/atotto/clipboard)
 4
 5# Clipboard for Go
 6
 7Provide copying and pasting to the Clipboard for Go.
 8
 9Build:
10
11    $ go get github.com/atotto/clipboard
12
13Platforms:
14
15* OSX
16* Windows 7 (probably work on other Windows)
17* Linux, Unix (requires 'xclip' or 'xsel' command to be installed)
18
19
20Document: 
21
22* http://godoc.org/github.com/atotto/clipboard
23
24Notes:
25
26* Text string only
27* UTF-8 text encoding only (no conversion)
28
29TODO:
30
31* Clipboard watcher(?)
32
33## Commands:
34
35paste shell command:
36
37    $ go get github.com/atotto/clipboard/cmd/gopaste
38    $ # example:
39    $ gopaste > document.txt
40
41copy shell command:
42
43    $ go get github.com/atotto/clipboard/cmd/gocopy
44    $ # example:
45    $ cat document.txt | gocopy
46
47
48