package
0.0.0-20190806085950-af561f6ff7a1
Repository: https://github.com/kylebanks/go-kit.git
Documentation: pkg.go.dev
# README
clipboard
-- import "github.com/KyleBanks/go-kit/clipboard/"
Package clipboard provides the ability to read and write to the system clipboard.
Note: Currently only supports Mac OS.
Usage
func Read
func Read() (io.Reader, error)
Read returns the current contents of the system clipboard.
func ReadString
func ReadString() (string, error)
ReadString returns the current contents of the system clipboard as a string.
func Write
func Write(r io.Reader) error
Write stores the contents of the reader provided in the system clipboard.
func WriteString
func WriteString(s string) error
WriteString stores a string in the system clipboard.