doc/codewalk: test source code

Fixes issue 2648.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/11331043