Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
cmd/ | H | 24-Feb-2021 | - | |||
.travis.yml | H A D | 24-Feb-2021 | 321 | |||
LICENSE | H A D | 24-Feb-2021 | 1.4 KiB | |||
README.md | H A D | 24-Feb-2021 | 912 | |||
clipboard.go | H A D | 24-Feb-2021 | 554 | |||
clipboard_darwin.go | H A D | 24-Feb-2021 | 908 | |||
clipboard_plan9.go | H A D | 24-Feb-2021 | 663 | |||
clipboard_test.go | H A D | 24-Feb-2021 | 1.2 KiB | |||
clipboard_unix.go | H A D | 24-Feb-2021 | 3.2 KiB | |||
clipboard_windows.go | H A D | 24-Feb-2021 | 4.1 KiB | |||
example_test.go | H A D | 24-Feb-2021 | 205 | |||
go.mod | H A D | 24-Feb-2021 | 35 |
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