update example for go1.2
Merge pull request #1 from ltd/master

update example for go1.2