Update code sample for Go 1+

`time.LocalTime()` no longer exists. I've updated that line to the current syntax.
using fmt.Printf
Merge pull request #401 from s7v7nislands/fix_print

using fmt.Printf instead of fmt.Println
Merge pull request #400 from y0ssar1an/patch-1

Update code sample for Go 1+
fix #388
fix #378
sync to chinese version fix #373