{"repo":"golang-design/clipboard","free":true,"listed":false,"github":"https://github.com/golang-design/clipboard","clone":"git clone https://github.com/golang-design/clipboard.git","description":"📋 cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)","language":"Go","stars":852,"topics":["go","golang","clipboard","clipboard-library","linux","macos","x11","nspasteboard","windows","android"],"license":"MIT","category":"mobile-apps","readme_excerpt":"clipboard Cross platform (macOS/Linux/Windows/BSD/Android/iOS) clipboard package in Go Features - Cross platform supports: macOS, Linux (X11 and Wayland), Windows, BSD (X11), iOS, and Android - Cgo-free on desktop (macOS, Linux, Windows, BSD) — no C toolchain at build time, no libX11 / libwayland at runtime - Copy/paste UTF-8 text - Copy/paste PNG-encoded images (Desktop-only); Write also accepts other encodings when their decoder is registered - Register and copy/paste custom MIME-typed formats (Desktop-only, raw passthrough) - Watch the clipboard for changes (event-driven on Wayland) - Discover what's on the clipboard with Formats() / Format.MIME (Desktop-only) - Command gclip as a demo application - Mobile app gclip-gui as a demo application API Usage Package clipboard provides cross platform clipboard access and supports macOS/Linux/Windows/BSD/Android/iOS platform. Before interacting with the clipboard, one must call Init to assert if it is possible to use this package: The most common operations are Read and Write . To use them: Note that the clipboard serves images as PNG (it serves the alpha-blending purpose used by other graphical software), so Read(FmtImage) always returns PNG. Write(FmtImage, ...) accepts PNG directly and will also normalize other encodings to PNG when their decoder is registered — blank-import the decoder you need (e.g. import \"image/jpeg\" or import \"golang.org/x/image/webp\" ); no decoder is a mandatory dependency of this package. If you need to p","default_branch":null,"files":null,"tree":[],"storefront":"/r/golang-design","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/golang-design/clipboard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}