Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Go
/
Go fundamentals
When can names already declared in the current block appear on the left of :=?
from Go fundamentals
Go 1.27
beginner
1 min
When can names already declared in the current block appear on the left of :=?
When at least one other non-blank name on the left is new in that block
Only when every name on the left already exists
Whenever the statement is inside an if block
Never; := requires every left-side name to be new
Check
Ask AI about this kata
Report an error
previous kata
Review a generated limit-summary parser
Review AI code
next kata
Spot the bug in port selection
Spot the bug
A new version is available
Reload