Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(452)

Unified Diff: src/pkg/archive/tar/reader.go

Issue 7220048: code review 7220048: archive/tar: Add reader and writer code example. (Closed)
Patch Set: diff -r 445186a20cee https://code.google.com/p/go Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pkg/archive/tar/reader.go
===================================================================
--- a/src/pkg/archive/tar/reader.go
+++ b/src/pkg/archive/tar/reader.go
@@ -25,20 +25,6 @@
// A tar archive consists of a sequence of files.
// The Next method advances to the next file in the archive (including the first),
// and then it can be treated as an io.Reader to access the file's data.
-//
-// Example:
-// tr := tar.NewReader(r)
-// for {
-// hdr, err := tr.Next()
-// if err == io.EOF {
-// // end of tar archive
-// break
-// }
-// if err != nil {
-// // handle error
-// }
-// io.Copy(data, tr)
-// }
type Reader struct {
r io.Reader
err error

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b