mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
14 lines
313 B
Go
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)
|
|
}
|