mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update test
This commit is contained in:
parent
e1b1d554dd
commit
6f13aded25
@ -1,22 +1,22 @@
|
|||||||
package clipboard_test
|
package clipboard_test
|
||||||
|
|
||||||
import (
|
// import (
|
||||||
"fmt"
|
// "fmt"
|
||||||
|
|
||||||
"github.com/go-vgo/robotgo/clipboard"
|
// "github.com/go-vgo/robotgo/clipboard"
|
||||||
)
|
// )
|
||||||
|
|
||||||
func Example() {
|
// func Example() {
|
||||||
clipboard.WriteAll("日本語")
|
// clipboard.WriteAll("日本語")
|
||||||
text, err := clipboard.ReadAll()
|
// text, err := clipboard.ReadAll()
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
fmt.Println(err)
|
// fmt.Println(err)
|
||||||
} else {
|
// } else {
|
||||||
if text != "" {
|
// if text != "" {
|
||||||
fmt.Println(text)
|
// fmt.Println(text)
|
||||||
|
|
||||||
// Output:
|
// // Output:
|
||||||
// 日本語
|
// // 日本語
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
Loading…
Reference in New Issue
Block a user