Advanced
Go (Golang)
Q95 / 100
What is the Go linker's dead code elimination vs tree shaking?
Correct! Well done.
Incorrect.
The correct answer is B) Go's linker performs whole-program dead code elimination, removing unreachable functions. It does not do per-module tree shaking like JavaScript bundlers
B
Correct Answer
Go's linker performs whole-program dead code elimination, removing unreachable functions. It does not do per-module tree shaking like JavaScript bundlers
Explanation
The Go linker starts from main and marks reachable symbols. Unreachable functions and their dependencies are excluded. This is why Go binaries include no unused code.
Progress
95/100