Skip to content

atotto/clipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1438b32 · Mar 11, 2021

History

86 Commits
Feb 9, 2019
Feb 24, 2021
Aug 26, 2013
Mar 11, 2021
Jan 10, 2017
Feb 19, 2014
Apr 9, 2019
Sep 13, 2015
Apr 28, 2019
Nov 17, 2020
Sep 13, 2015
Oct 12, 2018

Repository files navigation

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