Guide53.6K views4,039 votes0 replies4,580 following
Detecting Variable Shadowing in Go with Sema: A Practical Guide
Learn how Go’s Sema component flags variable shadowing, see a minimal example, understand its limits, and verify the feature with go vet and staticcheck.