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

21 lines
277 B
Go
Raw Normal View History

2021-07-30 22:29:20 +00:00
// +build darwin
package clipboard
import (
"git.wow.st/gmp/clip"
"golang.org/x/xerrors"
)
func set(text string) error {
ok := clip.Set(text)
if !ok {
return xerrors.New("nothing to set string")
}
return nil
}
func get() (string, error) {
return clip.Get(), nil
}