From f7b9a6caeea5fb0db8a7df28f2f29a38b5caa346 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 9 Mar 2015 13:56:45 -0400 Subject: [PATCH] tar/asm: comments --- tar/asm/disassemble.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tar/asm/disassemble.go b/tar/asm/disassemble.go index b5d8564..1021185 100644 --- a/tar/asm/disassemble.go +++ b/tar/asm/disassemble.go @@ -14,8 +14,10 @@ import ( // In the middle it will pack the segments and file metadata to storage.Packer // `p`. // -// The the storage.FilePutter is where payload of files in the stream are stashed. If -// this stashing is not needed, fp can be nil or use storage.NewDiscardFilePutter. +// The the storage.FilePutter is where payload of files in the stream are +// stashed. If this stashing is not needed, you can provide a nil +// storage.FilePutter. Since the checksumming is still needed, then a default +// of NewDiscardFilePutter will be used internally func NewInputTarStream(r io.Reader, p storage.Packer, fp storage.FilePutter) (io.Reader, error) { // What to do here... folks will want their own access to the Reader that is // their tar archive stream, but we'll need that same stream to use our