example.go now builds, and is more idiomatic

Note: if this weren't package main (or if log.Fatal were not used), the idiomatic approach to this would be much different.