Fix compilation for Windows

This commit is contained in:
2025-11-10 23:17:40 -05:00
parent a0f21b31f7
commit bc793178e1
23 changed files with 23 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
//go:build (android && !termux) || ios
package clip
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
}