erm/vendor/git.wow.st/gmp/clip
Liam Galvin e60a0b0427 Initial commit 2021-07-30 23:29:20 +01:00
..
ns Initial commit 2021-07-30 23:29:20 +01:00
README.md Initial commit 2021-07-30 23:29:20 +01:00
main.go Initial commit 2021-07-30 23:29:20 +01:00
nswrap.yaml Initial commit 2021-07-30 23:29:20 +01: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