gui/pkg/clipboard/platform.go
Snider 7b8ed9df6f feat(clipboard): add clipboard core.Service with Platform interface and IPC
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:16:54 +00:00

14 lines
332 B
Go

// pkg/clipboard/platform.go
package clipboard
// Platform abstracts the system clipboard backend.
type Platform interface {
Text() (string, bool)
SetText(text string) bool
}
// ClipboardContent is the result of QueryText.
type ClipboardContent struct {
Text string `json:"text"`
HasContent bool `json:"hasContent"`
}