Dead simple Go library to open a window with an image.
Only Linux (X server) is supported.
go get github.com/orsinium-labs/imgshow
stream, _ := os.Open("image.png")
img, _ := png.Decode(stream)
imgshow.Show(img)
See _examples directory for more examples.
The code is based on goiv library which is an image viewer written on Go. Unfortunately, the project doesn't provide an API, so imgshow
was born out of it.