doc: fix formatting in effective go code snippet

Fixes issue 5403.

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/9100046
text/template: comment fix

R=golang-dev, minux.ma, r
CC=golang-dev
https://codereview.appspot.com/9086043