• Joe Tsai's avatar
    archive/tar: implement specialized logic for USTAR format · 0d1a8f6e
    Joe Tsai authored
    Rather than going through the complicated logic of writeHeader,
    implement a writeUSTARHeader that only knows about the USTAR format.
    This makes the logic much easier to reason about since you only
    need to be concerned about USTAR and not all the subtle
    differences between USTAR, PAX, and GNU.
    
    We seperate out the logic in writeUSTARHeader into templateV7Plus
    and writeRawHeader since the planned implementations of
    writePAXHeader and writeGNUHeader will use them.
    
    Change-Id: Ie75a54ac998420ece82686159ae6fa39f8b128e9
    Reviewed-on: https://go-review.googlesource.com/54970Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    0d1a8f6e
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...