mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
19 lines
266 B
Go
19 lines
266 B
Go
package clipboard_test
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/go-vgo/robotgo/clipboard"
|
|
)
|
|
|
|
func Example() {
|
|
clipboard.WriteAll("日本語")
|
|
text, err := clipboard.ReadAll()
|
|
if err != nil {
|
|
fmt.Println(err)
|
|
} else {
|
|
fmt.Println(text)
|
|
// Output:
|
|
// 日本語
|
|
}
|
|
}
|