1
0
forked from gmp/clip
Adding files and image clipboard handling
Go to file
2021-02-01 17:34:13 +03:00
ns add get clipboard files and image handling 2021-02-01 17:08:39 +03:00
main_test.go Initial commit. 2019-10-01 09:33:35 -04:00
main.go clear before paste files 2021-02-01 17:34:13 +03:00
nswrap.yaml Initial commit. 2019-10-01 09:33:35 -04:00
README.md add get clipboard files and image handling 2021-02-01 17:08:39 +03:00

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