mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
21 lines
265 B
Go
21 lines
265 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:
|
|
// 日本語
|
|
}
|