A cross-platform Go package for accessing and manipulating system clipboard text and images across macOS, Linux, Windows, Android, and iOS.
clipboard is a Go package that provides cross-platform access to the system clipboard, supporting both text and image data. It allows developers to read from and write to the clipboard on macOS, Linux, Windows, Android, and iOS with a unified API, solving the problem of platform-specific clipboard handling in Go applications.
Go developers building cross-platform desktop or mobile applications that require clipboard interactions, such as tools for data transfer, screenshot utilities, or universal clipboard services.
Developers choose clipboard for its simplicity, broad platform support, and no external dependencies on most platforms, offering a reliable and consistent way to handle clipboard operations across different operating systems.
📋 cross-platform clipboard package that supports accessing text and image in Go (macOS/Linux/Windows/Android/iOS)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports macOS, Linux, Windows, Android, and iOS with a unified API, abstracting platform-specific clipboard operations as highlighted in the README's feature list.
Provides straightforward Read and Write functions for text and image data, along with change notifications and a watcher API for real-time monitoring, simplifying development.
Includes gclip for command-line access and gclip-gui for mobile verification, aiding in testing and integration, as documented in the Demos section.
On Windows and mobile platforms, it has no dependencies; on macOS, it uses Cgo but no additional libraries, reducing setup complexity for most use cases.
Image clipboard is desktop-only and restricted to PNG encoding; the README notes that other data types are not supported, leading to undefined behavior.
Requires Cgo for macOS and X11 development packages for Linux, complicating setup and potentially causing build issues in constrained environments, as admitted in the Platform Specific Details.
On Linux, it relies on X11 and does not support Wayland natively, requiring XWayland bridge which may not be available or optimal, as mentioned in the README.