Ariver
2026-06-03 b94a79dc7c9cfcdf72605289d0b89e85238c7d02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package input
 
// Paster provides clipboard and keyboard simulation functionality.
type Paster interface {
    // Paste writes text to clipboard temporarily, simulates Ctrl+V (Cmd+V on macOS),
    // and optionally leaves the recognized text in the clipboard.
    Paste(text string, keepClipboard bool) error
    // TypeText simulates typing each character via Unicode input events (fallback).
    TypeText(text string) error
}
 
// NewPaster creates a new platform-specific paster.
func NewPaster() Paster {
    return newPlatformPaster()
}