Sitemap
Dev Genius

Coding, Tutorials, News, UX, UI and much more related to development

Member-only story

The Go Compiler Just Code-Reviewed Me (And It Was Right)

6 min readJul 31, 2026

--

I need to tell you about the most humbling five minutes of my week.

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.

Then I ran one command:

go fix -diff ./...

And the compiler said: “I’ll take it from here.”

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.

I wrote none of the new code. The bot is a better Go programmer than I was four years ago.

(This article was co-authored with https://liteagent.cloud/ . Try it today!)

Press enter or click to view image in full size

--

--

Cheikh seck
Cheikh seck

Written by Cheikh seck

I'm currently looking for a role as an AI integration expert or backend engineer. Send me a message at cheeikhseck@gmail.com

Dev Genius
Dev Genius

Published in Dev Genius

Coding, Tutorials, News, UX, UI and much more related to development