clipboard
clipboard copied to clipboard
π cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)
in the win ,normal exe ,is work good but in the win service is not work same code can't read and watch
(1. https://github.com/golang/go/issues/26445 2. https://github.com/golang/go/issues/33254 )
I have been using clipboard to build a small personal application as a replacement for xclip. The first time I built and tested the application, it threw this error: ```...
Did you consider using https://github.com/BurntSushi/xgb which is Cgo free/native binding to XCB? I am not sure though, but it should be possible to rewrite with XCB instead of Xlib so...
Hey @changkun, Thank you for your great work. I am wondering how hard it would be to implement the equivalent of the `-l, -loops` switch of xclip (X11Β tool on...
Hey quick question. Are there plans to support wayland in the future? Thank you for you time :)
Currently, we only support UTF-8 text and PNG-encoded image data. However, there are much more formats than that. Let's support registering custom format and handlers so that this package can...
Image from [file_example_PNG_500kB.png](https://file-examples.com/storage/fec71f2ebe65d8e339e8b9c/2017/10/file_example_PNG_500kB.png) ```console β ~ go install golang.design/x/clipboard/cmd/gclip@latest β ~ gclip -copy -f ~/Downloads/file_example_PNG_500kB.png ``` Takes 10-30 seconds to copy it to clipboard ```console β ~ cat /etc/os-release PRETTY_NAME="Ubuntu...
```go package main import ( "bytes" "image" "image/png" "os" "golang.design/x/clipboard" _ "image/jpeg" ) func main() { if err := clipboard.Init(); err != nil { panic(err) } // open some jpeg...