This is a multi-platform clipboard library in Go.
- This is clipboard library in Go, which runs on multiple platforms.
- External clipboard package is not required.
- Windows
- macOS
- Linux, Unix (X11)
go get github.com/d-tsuji/clipboard
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