The shortest go solution doesn't need globals