• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmd/H24-Feb-2021-5644

.travis.ymlH A D24-Feb-2021321 2317

LICENSEH A D24-Feb-20211.4 KiB2824

README.mdH A D24-Feb-2021912 4926

clipboard.goH A D24-Feb-2021554 218

clipboard_darwin.goH A D24-Feb-2021908 5339

clipboard_plan9.goH A D24-Feb-2021663 4329

clipboard_test.goH A D24-Feb-20211.2 KiB7456

clipboard_unix.goH A D24-Feb-20213.2 KiB150117

clipboard_windows.goH A D24-Feb-20214.1 KiB158124

example_test.goH A D24-Feb-2021205 1710

go.modH A D24-Feb-202135 21

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
49