Fix for Go 1 compatibility + panic fix on partial

1) I ran go fix to make this Go 1 compatible
2) I fixed a panic which occured on Go 1 whenever a partial tag was processed. This was caused by trying to perform .Close() on a nil file reference.