doc/codewalk: test source code

Fixes #2648.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11331043
2 files changed