Files
klp/internal/clipboard/clipboard.go
2026-01-27 22:01:30 -06:00

14 lines
362 B
Go

package clipboard
import "context"
// Clipboard provides an interface for clipboard operations
type Clipboard interface {
// Read returns the current clipboard content
Read() (string, error)
// Write sets the clipboard content
Write(content string) error
// Watch returns a channel that emits clipboard changes
Watch(ctx context.Context) <-chan string
}