×

go · level 1 · unit 1 · lesson 4

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

An is a clue, not a disaster.

An error is Go saying it got stuck. Everyone gets them, even experts. Go checks your whole program before running it, so if anything is wrong, not even the first line runs.

A means Go cannot read your code, like a sentence with a word missing. Often a quote mark, comma or bracket has gone astray. newline in string means a string never got its closing quote.

means Go met a name it does not know. Go is , so Fmt with a capital F is a stranger to it. Go is tidy too: import a toolbox you never use, and it refuses to run.

In main.go:5:2, the 5 is the line and the 2 is how far along it, so start your search there.