5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:20:48 +08:00
wails/v2/pkg/runtime/clipboard.go
2023-01-05 16:41:07 +11:00

14 lines
313 B
Go

package runtime
import "context"
func ClipboardGetText(ctx context.Context) (string, error) {
appFrontend := getFrontend(ctx)
return appFrontend.ClipboardGetText()
}
func ClipboardSetText(ctx context.Context, text string) error {
appFrontend := getFrontend(ctx)
return appFrontend.ClipboardSetText(text)
}