erm/vendor/github.com/d-tsuji/clipboard/clipboard_windows.go

16 lines
219 B
Go

// +build windows
package clipboard
import "github.com/lxn/walk"
func get() (string, error) {
c := walk.Clipboard()
return c.Text()
}
func set(text string) error {
c := walk.Clipboard()
return c.SetText(text)
}