Update test

This commit is contained in:
vcaesar 2017-10-11 20:15:11 +08:00
parent e1b1d554dd
commit 6f13aded25

View File

@ -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:
// // 日本語
// }
// }
// }