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

16 lines
219 B
Go
Raw Normal View History

2021-07-30 22:29:20 +00:00
// +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)
}