package
module
Version:
v0.0.0-...-35a41f2
Opens a new window with list of versions in this module.
Published: Sep 14, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
¶
clipboard
This package provides access to the system's text clipboard for the Go programming language. Windows, OSX and Linux (GTK) are supported.
Install with go get github.com/tjgq/clipboard
.
Browse the package documentation at
http://godoc.org/github.com/tjgq/clipboard.
Documentation
¶
Package clipboard gives access to the system's text clipboard.
Get returns the current clipboard value.
Notify causes c to receive future clipboard values.
If c is already receiving clipboard values, Notify is a no-op.
This package will not block sending to c. It is the caller's responsibility
to either ensure enough buffer is available.
Set sets the clipboard value.
func Unnotify(c chan<- string)
Unnotify causes c to no longer receive clipboard values.
If c is not receiving clipboard values, Unnotify is a no-op.
It is guaranteed that c receives no more values after Unnotify returns.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.