forked from gmp/clip
1
0
Fork 0
Adding files and image clipboard handling
Go to file
Greg 1458ba6a7c fixup 2019-10-01 09:41:49 -04:00
ns Initial commit. 2019-10-01 09:33:35 -04:00
README.md fixup 2019-10-01 09:41:49 -04:00
main.go Initial commit. 2019-10-01 09:33:35 -04: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/gmp/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