This is just a tiny library that helps you getting an image from your clipboard into your application.
If you are running X11 you will need to have xclip
installed.
On Wayland you will need wl-clipboard
.
On Windows, this simply invokes a PowerShell script. Sadly this causes the library to open a PowerShell window, unless you are already running inside of a terminal.
func main() {
data, err := goclipimg.GetImageFromClipboard()
if err == nil {
doSomethingWithYourPNG(data)
}
}