Update code sample for Go 1+

`time.LocalTime()` no longer exists. I've updated that line to the current syntax.
Merge pull request #400 from y0ssar1an/patch-1

Update code sample for Go 1+