Skip to content

Deadcode detection and better weight-diff

Choose a tag to compare

@egonelbre egonelbre released this 25 Feb 09:36
· 40 commits to main since this release

The main addition in this release is the deadcode query function, which identifies packages that directly or indirectly cause dead code via reflect.Value.MethodByName or similar calls that disable the linker's dead code elimination for interface methods.

goda list -std "deadcode(./...:all)"

A new weight-diff command compares binary weight between two builds, with aliases support, cumulative delta reporting, and deterministic sorting. Both weight and weight-diff now exclude BSS symbols from totals.

goda weight-diff <1> <2> <3>

The graph command gained Mermaid diagram output and GraphML coloring with edges colored by destination node. The tree command now prints line numbers and source locations.

Full Changelog: v0.7.1...v0.9.2