fsouza/gokabinet — pull request #1 by bernerdschaefer (2012-09-03 15:32:49+00:00)
Title: Add GetGob and SetGob

Adds support for storing and retrieving arbitrary go structures with GetGob and SetGob.

I would have liked to reduce some of the duplication in the Get/Set functions, but I couldn't come up with a nice way to do it without breaking the GetInt/SetInt tests.

This solves my particular use-case, but doesn't fix the underlying problem that `Get()` should really be using `C.GoStringN(...)` to safely retrieve values. That, however, would break GetInt(), which is dependent on Get truncating values like, `"\0\0\0\0\0\0\0\n"`.