clipboard

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clipboard

type Clipboard interface {
	Write(string) error
	Read() (string, error)
}

type MemoryClipboard

type MemoryClipboard struct {
	deadlock.RWMutex
	// contains filtered or unexported fields
}

func (*MemoryClipboard) Read

func (mc *MemoryClipboard) Read() (string, error)

func (*MemoryClipboard) Write

func (mc *MemoryClipboard) Write(text string) error

type SystemClipboard

type SystemClipboard struct {
}

func NewSystemClipboard

func NewSystemClipboard() (*SystemClipboard, error)

func (*SystemClipboard) Read

func (c *SystemClipboard) Read() (string, error)

func (*SystemClipboard) Write

func (c *SystemClipboard) Write(text string) error

Jump to

Keyboard shortcuts

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