I have been trying to figure out how to do some local persistence using gob encoding to a file.
Whenever I use normal types everything seems fine. If I try to use a struct whenever I try to decode the file it throws an EOF error and the decoding fails.
I'm guessing I just don't understand how to register my type with the gob package, I tried giving it an 'empty' value but still failed.
http://play.golang.org/p/Ega0ZCnJJb[I removed all other error checking to demo where I am getting the error]
Thanks,
Jacob