clipboard

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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