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