Most Go beginners stumble on the same handful of things, and almost none of them are about intelligence. They come from expectations borrowed from other languages: too many folders, too much abstraction, or waiting to feel ready before writing anything that runs. Here are the seven that show up again and again, and what to do instead.
Mistakes in how you start
- Building a folder maze before writing a line. Beginners copy the layout of a large open-source repository. Start with one
main.goand ago.mod. Split into packages when a file gets genuinely hard to read, not before. - Waiting for the right editor setup. A plain editor, a terminal, and the Go toolchain are enough for month one. Fiddling with plugins feels productive and teaches you nothing about the language.
- Reading and never typing. Tutorials create a pleasant sense of understanding that evaporates the moment the page closes. Type every example by hand, then change one thing and predict what happens.
Mistakes in how you write Go
- Fighting the language’s taste. Go has strong opinions about formatting and error handling. Run
gofmtuntil it stops surprising you, and return errors instead of ignoring them with_. Work with the grain for a few weeks before deciding you disagree. - Reaching for interfaces and generics too early. A beginner who writes three interfaces for one small program spends the afternoon wiring types together instead of solving the actual problem. Concrete structs and plain functions go a long way.
Mistakes in how you work
- Never writing a test. You do not need coverage reports. One table-driven test that calls your function with three inputs teaches you more about Go’s testing style than any chapter. Run it with
go test ./...and watch it fail first. - Hiding the ugly version. Beginners often refuse to commit until the code looks respectable, so the repository stays empty for weeks. Commit the clumsy version, then improve it in the open. The history is the learning, not the finished file.
What to do this week instead
Pick one small program you actually want: a word counter, a file renamer, a tiny web endpoint that returns your name. Write the ugliest version that works, run go vet and gofmt on it, and commit. Then read the code out loud and rewrite one function so it says what it does. That loop, repeated ten times, beats any course outline.
Do I need to know another language first?
No, though prior experience shortens the first week. If Go is your first language, expect to spend extra time on the terminal, paths, and reading error messages, and be patient with yourself about it.
Is it a mistake to copy code from the internet?
Only when it stays unread. Copying a snippet and then rewriting it in your own words, variable names, and structure is one of the fastest ways to learn what it actually does.
Every item on this list is fixable in an afternoon, and none of them mean you are bad at programming. Write small programs, format them, test the parts you are unsure about, and let the language’s conventions become boring. Boring Go is usually good Go.