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