News for hackers. Stuff that matters.
Re:A fast geo database with LevelDB, Go and Geohashes by Jabbles on Monday August 31, 2015 @06:45AM (#10146209)
A few quick code comments:

Now().UnixNano() is not guaranteed to be monotonically increasing. I'd be more careful if your keys really do need to be unique.

You can use time.Truncate to get the 10 minute interval.

    var t time.Time
    t = start
    for {
    	if t.After(stop) {
    		break
    	}
    	/* ... */
    	t = t.Add(d)
    }
Would usually be written:

    for t := start; !t.After(stop); t = t.Add(d) {
Re:A fast geo database with LevelDB, Go and Geohashes by akhenakh on Monday August 31, 2015 @01:56PM (#10148116)
It's not actual code but notes for the simplicity of the blog post. Thanks for the advise I didn't know about Truncate.