package
1.0.0-rc2.1
Repository: https://github.com/go-vgo/robotgo.git
Documentation: pkg.go.dev

# README

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

# Packages

# Functions

ReadAll read string from clipboard.
WriteAll write string to clipboard.

# Variables

Primary choose primary mode on unix.
Unsupported might be set true during clipboard init, to help callers decide whether or not to offer clipboard options.