go fmt
Return correct value in directRetInfo.encode

Typo caused the original struct for result encoding
to be returned, rather than the encoded result.
Merge pull request #137 from axw/libgo-misc

Misc fixes