Why pull a heavy framework into a Go project or build things from scratch when one small package solves the problem? Five compact tools just got fresh releases. They cover a terminal Markdown viewer, a local debugger, an SQL query hook, a string comparison library, and a basic statistics package. Two of them have zero external dependencies, so your go.mod stays clean.
Glow 3.1: inline images and clickable links in terminal Markdown
The terminal Markdown viewer Glow 3.1 can now draw local images right in your console. It checks for Kitty and Sixel graphics support on its own. Because of that, illustrations in README.md work out of the box in Kitty, Ghostty, and WezTerm.
Remote images over HTTP and HTTPS are turned off by default. It is a small detail, but it protects your privacy. A normal image in someone else's Markdown works like a tracking pixel and leaks your IP to a third-party server. If you want remote images, turn on loadRemoteImages: true in the config. You can also limit their height with the --image-max-rows flag (20 rows by default).
The text renderer was updated on top of Glamour 2.1.0. Links are now clickable via OSC 8 without long URLs next to them, and headings scale up to 3x in Kitty. In version 3, the module path also changed to charm.land/glow/v3.
q 1.1: fast debug output for Go structs without fmt clutter
The q 1.1 package helps when you want to inspect struct fields fast without filling stdout with temporary fmt.Printf calls. Calling q.Q(...) labels variable names automatically and writes formatted output to $TMPDIR/q. You just open a second terminal and run tail -f $TMPDIR/q.
import "github.com/ryboe/q"
type User struct {
ID int
Role string
}
func debugUser(u User) {
// Writes the struct and field to $TMPDIR/q instead of stdout
q.Q(u, u.Role)
}
In version 1.1, the package dropped all external dependencies. Formatting code moved into internal/pretty, and support for the old GO111MODULE=off mode was removed. The update also fixed a deadlock when calling q.Q(...) inside GoString(), multiline calls, and false matches on a local variable named q. This tool is strictly for local debugging and does not belong in production.
sqlhooks 2.2: query logging and tracing on top of standard database/sql
When a project uses standard database/sql, sqlhooks 2.2 lets you measure query time without an ORM. The package wraps any driver and gives you Before, After, and optional OnError hooks.
type ctxKey string
type Hooks struct{}
// Save the query start time in the context
func (h *Hooks) Before(
ctx context.Context, query string, args ...any,
) (context.Context, error) {
return context.WithValue(ctx, ctxKey("t"), time.Now()), nil
}
// Print duration after the query runs
func (h *Hooks) After(
ctx context.Context, query string, args ...any,
) (context.Context, error) {
start := ctx.Value(ctxKey("t")).(time.Time)
fmt.Printf("%s (%s)\n", query, time.Since(start))
return ctx, nil
}
// Register the wrapped driver once at startup
drv := sqlhooks.Wrap(&sqlite3.SQLiteDriver{}, &Hooks{})
sql.Register("sqlite3WithHooks", drv)
In version 2.2, the Conn and Stmt wrappers implement driver.NamedValueChecker and pass argument checks to the base driver. This fixed passing uint64 values with the high bit set in MySQL. Also, Compose no longer panics in OnError on non-comparable errors like mssql.Error, and it switched to errors.Is for %w wrapped errors.
go-edlib 1.8: string comparison and edit distance algorithms
For typo suggestions and fuzzy search, check out go-edlib 1.8. It bundles Levenshtein, Damerau-Levenshtein, Jaro-Winkler, LCS, Hamming, and cosine similarity behind one API.
import "github.com/hbollon/go-edlib"
// Calculate Levenshtein similarity between two strings from 0 to 1
sim, _ := edlib.StringsSimilarity(
"string1", "string2", edlib.Levenshtein,
)
// Find the closest match to a word with a typo
words := []string{"test", "tester", "testing", "sting"}
best, _ := edlib.FuzzySearch("testnig", words, edlib.Levenshtein)
Release 1.8 raises the minimum version to Go 1.24. It also fixes Jaro-Winkler (flooring transpositions and applying the prefix boost only when similarity is above 0.7) and switches LCSEditDistance to count runes on empty strings. Watch out for one Unicode detail: the package compares []rune code points without normalization. Two café strings that look identical can give a distance of 2 unless you pass them through norm.NFC.String first.
Stats 0.15: statistical calculations in Go without third-party dependencies
The Stats 0.15 package handles medians, percentiles, correlations, entropy, and t-tests with zero external dependencies. For regular services, it is a handy replacement for heavy gonum.
import "github.com/montanaflynn/stats"
data := []float64{1.0, 2.1, 3.2, 4.823, 4.1, 5.8}
// Calculate median, round it, and find entropy
median, _ := stats.Median(data)
rounded, _ := stats.Round(median, 2)
entropy, _ := stats.Entropy(data)
Release 0.15 fixed quiet bugs in the math. TTest now computes the right p-value for small t (for t = 0.001 and one degree of freedom, it used to return 0.38 instead of 0.9994). Entropy now returns ErrZero and ErrNegative instead of NaN without an error, and it avoids overflow near MaxFloat64.
Sample and StableSample also moved to an internal random generator so they don't break global math/rand. Plus, Variance, Skewness, Kurtosis, and Correlation are faster now. The package is still on 0.x, so check your tests when updating if they relied on rand.Seed.


