Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tableOfContents (0.28 sec)

  1. src/cmd/pack/pack.go

    var stdout io.Writer = os.Stdout
    
    // printContents implements the 'p' command.
    func (ar *Archive) printContents(e *archive.Entry) {
    	ar.extractContents1(e, stdout)
    }
    
    // tableOfContents implements the 't' command.
    func (ar *Archive) tableOfContents(e *archive.Entry) {
    	if ar.match(e) {
    		listEntry(e, verbose)
    	}
    }
    
    // extractContents implements the 'x' command.
    func (ar *Archive) extractContents(e *archive.Entry) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. src/cmd/pack/pack_test.go

    	// Now print it.
    	var buf strings.Builder
    	stdout = &buf
    	verbose = true
    	defer func() {
    		stdout = os.Stdout
    		verbose = false
    	}()
    	ar = openArchive(name, os.O_RDONLY, nil)
    	ar.scan(ar.tableOfContents)
    	ar.a.File().Close()
    	result := buf.String()
    	// Expect verbose listing.
    	expect := fmt.Sprintf("%s\n%s\n", helloFile.Entry(), goodbyeFile.Entry())
    	if result != expect {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 16:27:35 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top