Im having strange behaviour, I write a file entity, but after making flushes the buffer grows without any data written to my tar.writer, how come? What am I doing wrong?
the code is extracted from a larger “small project”, Im having problems with corrupted output after using tar.gz writers and I found this strange behaviour. In my code I dont use Flush at all, I use close but somehow I still get corrupted output.
I was going to test gzip and tar separated, thank you, I modified your example to try archive/tar package and that the behaviour is different! tar is not adding any extra bytes to the buffer after flushing. https://play.golang.org/p/8Sz-NDayI1