Category Archives: golang

Golang FilePoller fspoll

When using the template package one doesn’t want to read the templates from the file system every time they are used.  Likewise you want to restart the process just to test some minor change within the template. Go’s os/inotify package creates a file watcher, … Continue reading

Posted in golang | 4 Comments

Fix for Unmarshal structs that contain slices merged into gomongo

With thanks to mikejs, again, for fixing gomongo. As mentioned previously there was a bug with the gomongo package that caused structs that contained slices not to Unmarshal correctally.

Posted in golang | Leave a comment

GOAuth command Line example

At last… …I’ve added an example to the GOAuth pages! It’s a very trivial example, but should be sufficient to get to grips with the package.

Posted in golang | Leave a comment

gomongo Unmarshal issues with types that contain slices

There’s been an issue with the gomongo that I’ve been aware of for a while and I’ve just found a fix for it. If you were to take the example that I created here:- – http://go.hokapoka.com/golang/mongodb-golang-gomongo/

Posted in golang, mondoDB | Leave a comment

why only int and int64 [Post from golang-nuts Google Group]

Will your code run for 2 billion years, if so it might get effected by the y2b bug! This discussion on the golang-nuts google group, about why only int & int64 have been implemented, made me laugh, so I thought I … Continue reading

Posted in golang | 1 Comment