mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
17 lines
334 B
Go
17 lines
334 B
Go
//go:build (android && !termux) || ios
|
|
|
|
package core
|
|
|
|
import (
|
|
"golang.design/x/clipboard"
|
|
)
|
|
|
|
// copyString copies a string to the clipboard.
|
|
func copyString(continuous bool, copySubject string) error {
|
|
clipboard.Write(clipboard.FmtText, []byte(copySubject))
|
|
if !continuous {
|
|
LaunchClipClearProcess(copySubject)
|
|
}
|
|
return nil
|
|
}
|