16 lines
219 B
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)
|
||
|
}
|