MediumThe Go Compiler Just Code-Reviewed Me (And It Was Right) | by Cheikh seck | Jul, 2026 | Dev GeniusSitemapOpen in appSign up<br>Sign in
Medium Logo
Get app<br>Write
Search
Sign up<br>Sign in
Dev Genius
Coding, Tutorials, News, UX, UI and much more related to development
Member-only story
Go
Programming
Api Development
Libraries
The Go Compiler Just Code-Reviewed Me (And It Was Right)
I wrote six functions in 2021-era Go. A bot rewrote them. Then I learned why the Go team built a semantic code reviewer into the compiler.
Cheikh seck
6 min read·<br>Just now
Listen
Share
I need to tell you about the most humbling five minutes of my week.<br>I wrote a file called legacy.go — six functions, deliberately written in the Go idioms I learned in 2021. interface{} instead of any. Hand-rolled min/max with if/else ladders. Manual map key gathering with for k := range m. The whole pre-1.18 vibe that's still burned into my muscle memory.<br>Then I ran one command:<br>go fix -diff ./...And the compiler said: “I’ll take it from here.”<br>It rewrote my code. Not with regex. Not with search-and-replace. With semantic understanding of what I was actually trying to do. It saw my interface{} and said "that's so 2021" — rewrote it to any. It saw my []byte(fmt.Sprintf(...)) dance and said "we have fmt.Appendf now, friend" — rewrote it to the pre-allocated version.<br>I wrote none of the new code. The bot is a better Go programmer than I was four years ago.<br>(This article was co-authored with https://liteagent.cloud/ . Try it today!)<br>Press enter or click to view image in full size
Published in Dev Genius<br>33K followers<br>·Last published just now
Coding, Tutorials, News, UX, UI and much more related to development
Written by Cheikh seck<br>317 followers<br>·20 following
Get your personal AI intern: https://liteagent.cloud/ -- Practice your English with https://www.convose.com/
Help
Status
About
Careers
Press
Blog
Store
Privacy
Rules
Terms
Text to speech