# mattn/go-gtk

Go binding for GTK

Repository: https://github.com/mattn/go-gtk
Canonical: https://ross.abutalabs.com/products/go-gtk
Homepage: http://mattn.github.com/go-gtk
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: gtk, go, linux, windows, osx
Last push: 2024-06-05T14:42:15+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6124, "days_push": 819, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2180, forks 252 (observed 2026-08-28T04:06:23.191968+00:00)

## What it is
Go bindings for the GTK+ 2 graphical toolkit, letting developers build native desktop GUI applications in Go. It wraps GTK, GDK, and GDK-Pixbuf APIs with partial coverage of widgets and methods.

## Use cases
- build a desktop gui application in go
- create cross-platform gtk apps with go
- write a go program with native widgets on linux
- embed images in a go gui app
- port a small gtk tool to go

## When to choose
- you need GTK2 bindings specifically for a Go project
- you want a lightweight, cgo-based Go GUI without heavy frameworks
- you maintain or extend an existing go-gtk application

## When to avoid
- you need GTK3 or GTK4 features
- you want full widget API coverage - bindings are incomplete
- you prefer a pure-Go GUI toolkit without cgo dependencies
- starting a new project where more actively developed alternatives like Fyne or Gio fit better

## Facets
- artifact type: library
- maturity: maintenance
- function: gui, ui-components
- domain: desktop-applications, cross-platform, developer-tools
- platform: windows, go, cross-platform
- tags: gtk, go-bindings, desktop-gui, gtk2, linux, macos

## Member repositories
- mattn/go-gtk (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.191968+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:48:43.789333+00:00, confidence not recorded.
  - readme: https://github.com/mattn/go-gtk (fetched 2026-08-28T04:06:23.191968+00:00, sha 5181aa9bfec6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
