940 B
940 B
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