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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.