The deadcode tool is a helpful tool for identifying and removing unreachable functions in Go programs. It uses Rapid Type Analysis (RTA) to determine which functions are reachable and provides information on why certain functions are live. However, the tool's analysis may not capture all unreachable functions and may not be aware of functions called exclusively from assembly code.

6m read timeFrom go.dev
Post cover image
Table of contents
The Go BlogFinding unreachable functions with deadcode

Sort: