erm/vendor/github.com/d-tsuji/clipboard
Liam Galvin e60a0b0427 Initial commit 2021-07-30 23:29:20 +01:00
..
.gitignore Initial commit 2021-07-30 23:29:20 +01:00
LICENSE Initial commit 2021-07-30 23:29:20 +01:00
Makefile Initial commit 2021-07-30 23:29:20 +01:00
README.md Initial commit 2021-07-30 23:29:20 +01:00
clipboard.go Initial commit 2021-07-30 23:29:20 +01:00
clipboard_darwin.go Initial commit 2021-07-30 23:29:20 +01:00
clipboard_unix.go Initial commit 2021-07-30 23:29:20 +01:00
clipboard_windows.go Initial commit 2021-07-30 23:29:20 +01:00
go.mod Initial commit 2021-07-30 23:29:20 +01:00
go.sum Initial commit 2021-07-30 23:29:20 +01:00

README.md

clipboard

Actions Status Doc Go Report Card

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