package gobstore import ( "fmt" "time" ) // timer is a helper function func timer(name string) func() { start := time.Now() return func() { fmt.Printf("%s took %v\n", name, time.Since(start)) } }