You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Greg Pomerantz 4c310187b7 Updates for Big Sur. 2 months ago
ns Updates for Big Sur. 2 months ago
README.md fixup 2 years ago
go.mod Updates for Big Sur. 2 months ago
main.go Initial commit. 2 years ago
main_test.go Initial commit. 2 years ago
nswrap.yaml Updates for Big Sur. 2 months ago

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