clipboard

package
v0.0.0-...-af561f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 5 Imported by: 0

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.

Documentation

Overview

Package clipboard provides the ability to read and write to the system clipboard.

Note: Currently only supports Mac OS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL