File: example_test.go

package info (click to toggle)
golang-github-zyedidia-clipboard 0.0~git20180718.bd31d74-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, buster-backports
  • size: 92 kB
  • sloc: makefile: 3
file content (16 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package clipboard_test

import (
	"fmt"

	"github.com/zyedidia/clipboard"
)

func Example() {
	clipboard.WriteAll("日本語")
	text, _ := clipboard.ReadAll()
	fmt.Println(text)

	// Output:
	// 日本語
}