Linux

On a Linux installation, there's a good chance that you already have GTK+ 2 installed, as so many applications use this widget set. If not (or if you are not sure), then your system's package manager will manage the installation; simply look for a package named gtk2 or gtk. You may need to install an additional gtk2-dev or gtk-dev package if your distribution splits development headers from the runtime library.

Get Hands-On GUI Application Development in Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.