Fix example

Now it both compiles and shows up in the (HTML) documentation.
Merge pull request #3 from sethwklein/example-fix

* Fix go test imports, docs, and formatting