Go
- languages
- in current work
used in
Go is what I reach for when I want a small, fast tool that ships as a single binary, and lately that mostly means terminal apps. Both wall, a live dashboard of every Claude Code session on my machine, and audio-meta-edit, a music tag editor, are Go programs built on Bubble Tea, Charm's framework for TUIs.
There isn't much ceremony to it. The standard library covers most of what a tool needs, concurrency with goroutines and channels is part of the language rather than a library, and go build gives you one file you can drop on your $PATH. Bubble Tea's Elm-style loop (model, update, view) also maps surprisingly well onto how I think about React components.
// Init — initial command batch.
func (m Model) Init() tea.Cmd {
return tea.Batch(scanCmd(), tickCmd())
}
func tickCmd() tea.Cmd {
return tea.Tick(refreshInterval, func(t time.Time) tea.Msg { return tickMsg(t) })
}
func scanCmd() tea.Cmd {
return func() tea.Msg {
sessions, err := claude.Discover(eventLimit)
if err != nil {
return scanResult{err: err}
}
wins, _ := hypr.Clients()
ps, _ := ports.Scan()
return scanResult{sessions: sessions, windows: wins, ports: ps}
}
}