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)
|
|
}
|