e60a0b0427 | ||
---|---|---|
.. | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
clipboard.go | ||
clipboard_darwin.go | ||
clipboard_unix.go | ||
clipboard_windows.go | ||
go.mod | ||
go.sum |
README.md
clipboard
This is a multi-platform clipboard library in Go.
Abstract
- This is clipboard library in Go, which runs on multiple platforms.
- External clipboard package is not required.
Supported Platforms
- Windows
- macOS
- Linux, Unix (X11)
Installation
go get github.com/d-tsuji/clipboard
API
package clipboard
// Get returns the current text data of the clipboard.
func Get() (string, error)
// Set sets the current text data of the clipboard.
func Set(text string) error