forked from gmp/clip
1
0
Fork 0
Adding files and image clipboard handling
Go to file
Ilya Turkin 0286dc39eb fix 2021-02-01 18:09:47 +03:00
ns add get clipboard files and image handling 2021-02-01 17:08:39 +03:00
README.md add get clipboard files and image handling 2021-02-01 17:08:39 +03:00
main.go fix 2021-02-01 18:09:47 +03:00
main_test.go Initial commit. 2019-10-01 09:33:35 -04:00
nswrap.yaml Initial commit. 2019-10-01 09:33:35 -04:00

README.md

Clip

A tiny library to access the MacOS clipboard (a.k.a. NSPasteboard).

go get git.wow.st/63l06ri5/clip

API:

package clip

// Clear clears the general pasteboard
func Clear()

// Set puts a string on the pasteboard, returning true if successful
func Set(string) bool

// Get retrieves the string currently on the pasteboard.
func Get() string