title: Go destructors?
body: <p>I know there are no destructors in Go since technically there are no classes. As such, I use <code>initClass</code> to perform the same functions as a constructor. However, is there any way to create something to mimic a destructor in the event of a termination, for the use of, say, closing files? Right now I just call <code>defer deinitClass</code>, but this is rather hackish and I think a poor design. What would be the proper way?</p>