Documentation ¶ Index ¶ func ReadText() (string, error) func SetProvider(p Provider) func WriteText(text string) error type Provider Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ReadText ¶ func ReadText() (string, error) func SetProvider ¶ func SetProvider(p Provider) func WriteText ¶ func WriteText(text string) error Types ¶ type Provider ¶ type Provider interface { ReadText() (string, error) WriteText(text string) error } Provider is a native clipboard backend. On mobile the shell registers one via SetProvider (ClipboardManager on Android, UIPasteboard on iOS); on desktop the built-in shell-command implementations are used when no provider is set. Source Files ¶ View all Source files clipboard.go Click to show internal directories. Click to hide internal directories.