golang-design / clipboard

📋 cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)
https://golang.design/x/clipboard
MIT License
579 stars 64 forks source link

Remove cgo requirements on macOS #51

Open xiebruce opened 1 year ago

xiebruce commented 1 year ago

I believe go is a powerfull language and believe that go itself can get the clipboard contents, using cgo is not go anymore.

changkun commented 1 year ago

removing Cgo on macOS is even more complicated than #25

There is a promising project https://github.com/ebitengine/purego but there is no clear practice on what should we do to remove the cgo requirement.

PR welcome.

xiebruce commented 10 months ago

maybe this article can help: https://blog.webp.se/golang-libvips-cgo-en/