Discover Packages
github.com/tjgq/clipboard
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: 6 modules, 3 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
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 .
Expand ▾
Collapse ▴
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
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.