A Tour of Go

Read and work through all of the Tour of Go. Then submit your solutions to the following exercises:

Your solutions should be of the form:

----------------------------- [EXERCISE NAME] ----------------------------------




Where [EXERCISE NAME] is replaced with the name of the exercise, [CODE GOES HERE] is replaced with your code, and [OUTPUT GOES HERE] is replaced with the output of running your code. You should have three of these blocks in your response, one for each exercise.

All students must submit their response to this reading question via the web submission form in a file named response.go.txt. Local Stanford Students must attend lecture if they are submitting a reading question unless expressively allowed otherwise.


Local Stanford students should write up their response on a sheet of paper that includes their name and SUNetID. The sheet of paper with the response should be submitted immediately before lecture.

SCPD students should write up their response in a text file named response.go.txt and upload it via the submission and grades page. You'll need to sign in with your SUNetID to access the page. Responses will be accepted until one week after the corresponding paper's lecture.

In either case, the response should be short, likely only a pithy paragraph in length.


Mondays and Wednesdays
1:30pm - 2:50pm
Skilling 80


Join the CS240 Google group.

Staff List


David Mazières
Gates 290
(415) 490-9451
Office Hours:
Friday 3:30pm-5:30pm

Sergio Benitez
Gates 288
(650) 723-8777
Office Hours:
Monday 5pm-6pm
Wednesday 5pm-6pm

Matthew Volk
Course Assistant
Office Hours:
Wednesday 6:15-8:15pm
Thursday 1:45-3:45pm
Lathrop Tech Lounge
Google Hangout

Previous Terms

Spring 2016
Spring 2015
Spring 2014
Winter 2013
Spring 2013
Spring 2012
Spring 2011
Spring 2010