Hi everyone, I’m new to Go development and I have a small question for you today.
I am in need of developing a small package that can store files into an archive. Once the files are written in the archive, and the main program closes, the next time I run the program I will need to add more data into the archive not only as new files but also by appending new data to files already into the archive.
My first thought was to go with the “archive/zip” library, only to find out that the library does not support the possibility to add new files to an existing zip nor append content to existing files within the zip. There is even a github issue about this with some ideas\suggestions (https://github.com/golang/go/issues/15626). It also seems the same applies to tar and gzip.
The question is: is there a best practice or recommended way to achieve the above? Should I extend the “archive/zip” to handle the cases I need?