Documentation ¶
Overview ¶
Package clipboard read/write on clipboard
Example ¶
package main import ( "fmt" "github.com/zyedidia/clipboard" ) func main() { clipboard.WriteAll("日本語", "clipboard") text, _ := clipboard.ReadAll("clipboard") fmt.Println(text) }
Output: 日本語
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Unsupported bool
Unsupported might be set true during clipboard init, to help callers decide whether or not to offer clipboard options.
Functions ¶
func Initialize ¶ added in v1.0.2
func Initialize() error
Initialize attempts to initialize the clipboard This function can only return an error on Linux
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.