cb

package
v0.0.0-...-96647dd Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 2 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 struct{}

func (*Clipboard) Clear

func (c *Clipboard) Clear() error

func (*Clipboard) Read

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

ReadFromClipboard reads from clipboard it will wait until clipboard has content

func (*Clipboard) Write

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

type ClipboardProvider

type ClipboardProvider interface {
	Clear() error
	Read() (string, error)
	Write(text string) error
}

func NewClipboard

func NewClipboard() ClipboardProvider

Jump to

Keyboard shortcuts

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