mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
23 lines
343 B
Go
23 lines
343 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 {
|
|
// if text != "" {
|
|
// fmt.Println(text)
|
|
|
|
// // Output:
|
|
// // 日本語
|
|
// }
|
|
// }
|
|
// }
|