2019-10-01 09:33:35 -04:00
|
|
|
# Clip
|
|
|
|
|
|
|
|
A tiny library to access the MacOS clipboard (a.k.a. NSPasteboard).
|
|
|
|
|
|
|
|
```go
|
2021-02-01 09:08:39 -05:00
|
|
|
go get git.wow.st/63l06ri5/clip
|
2019-10-01 09:33:35 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## API:
|
|
|
|
|
|
|
|
```go
|
2019-10-01 09:41:49 -04:00
|
|
|
package clip
|
2019-10-01 09:41:25 -04:00
|
|
|
|
2019-10-01 09:33:35 -04:00
|
|
|
// Clear clears the general pasteboard
|
|
|
|
func Clear()
|
2019-10-01 09:41:25 -04:00
|
|
|
|
2019-10-01 09:33:35 -04:00
|
|
|
// Set puts a string on the pasteboard, returning true if successful
|
|
|
|
func Set(string) bool
|
2019-10-01 09:41:25 -04:00
|
|
|
|
2019-10-01 09:33:35 -04:00
|
|
|
// Get retrieves the string currently on the pasteboard.
|
|
|
|
func Get() string
|
|
|
|
```
|