Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for helper (0.18 sec)

  1. src/archive/tar/example_test.go

    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    		{"todo.txt", "Get animal handling license."},
    	}
    	for _, file := range files {
    		hdr := &tar.Header{
    			Name: file.Name,
    			Mode: 0600,
    			Size: int64(len(file.Body)),
    		}
    		if err := tw.WriteHeader(hdr); err != nil {
    			log.Fatal(err)
    		}
    		if _, err := tw.Write([]byte(file.Body)); err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Viewed (0)
  2. src/archive/zip/zip_test.go

    	}
    }
    
    func testValidHeader(h *FileHeader, t *testing.T) {
    	var buf bytes.Buffer
    	z := NewWriter(&buf)
    
    	f, err := z.CreateHeader(h)
    	if err != nil {
    		t.Fatalf("error creating header: %v", err)
    	}
    	if _, err := f.Write([]byte("hi")); err != nil {
    		t.Fatalf("error writing content: %v", err)
    	}
    	if err := z.Close(); err != nil {
    		t.Fatalf("error closing zip writer: %v", err)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  3. api/go1.1.txt

    pkg archive/tar, const TypeSymlink = 50
    pkg archive/tar, const TypeXGlobalHeader = 103
    pkg archive/tar, const TypeXHeader = 120
    pkg archive/tar, func FileInfoHeader(os.FileInfo, string) (*Header, error)
    pkg archive/tar, method (*Header) FileInfo() os.FileInfo
    pkg archive/zip, const Deflate = 8
    pkg archive/zip, const Store = 0
    pkg archive/zip, type FileHeader struct, CompressedSize64 uint64
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  4. src/archive/tar/tar_test.go

    	}{{
    		header:  &Header{},
    		formats: FormatUSTAR | FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{Size: 077777777777},
    		formats: FormatUSTAR | FormatPAX | FormatGNU,
    	}, {
    		header:  &Header{Size: 077777777777, Format: FormatUSTAR},
    		formats: FormatUSTAR,
    	}, {
    		header:  &Header{Size: 077777777777, Format: FormatPAX},
    		formats: FormatUSTAR | FormatPAX,
    	}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. src/archive/tar/writer_test.go

    	tr := NewReader(&buffer)
    
    	for {
    		header, err := tr.Next()
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			t.Fatalf("Failed to read header: %s", err)
    		}
    		if header.Typeflag != TypeReg {
    			t.Fatalf("Typeflag should've been %d, found %d", TypeReg, header.Typeflag)
    		}
    	}
    }
    
    // failOnceWriter fails exactly once and then always reports success.
    type failOnceWriter bool
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  6. src/archive/tar/reader.go

    			}
    			if hdr.Typeflag == TypeXGlobalHeader {
    				mergePAX(hdr, paxHdrs)
    				return &Header{
    					Name:       hdr.Name,
    					Typeflag:   hdr.Typeflag,
    					Xattrs:     hdr.Xattrs,
    					PAXRecords: hdr.PAXRecords,
    					Format:     format,
    				}, nil
    			}
    			continue // This is a meta header affecting the next header
    		case TypeGNULongName, TypeGNULongLink:
    			format.mayOnlyBe(FormatGNU)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    type Writer struct {
    	cw          *countWriter
    	dir         []*header
    	last        *fileWriter
    	closed      bool
    	compressors map[uint16]Compressor
    	comment     string
    
    	// testHookCloseSizeOffset if non-nil is called with the size
    	// of offset of the central directory at Close.
    	testHookCloseSizeOffset func(size, offset uint64)
    }
    
    type header struct {
    	*FileHeader
    	offset uint64
    	raw    bool
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. doc/next/6-stdlib/99-minor/net/http/66008.md

    The new [ParseCookie] function parses a Cookie header value and
    returns all the cookies which were set in it. Since the same cookie
    name can appear multiple times the returned Values can contain
    more than one value for a given key.
    
    The new [ParseSetCookie] function parses a Set-Cookie header value and
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Apr 17 17:43:50 GMT 2024
    - 359 bytes
    - Viewed (0)
  9. api/go1.10.txt

    pkg archive/tar, const FormatUnknown = 0
    pkg archive/tar, const FormatUnknown Format
    pkg archive/tar, method (Format) String() string
    pkg archive/tar, type Format int
    pkg archive/tar, type Header struct, Format Format
    pkg archive/tar, type Header struct, PAXRecords map[string]string
    pkg archive/zip, method (*Writer) SetComment(string) error
    pkg archive/zip, type FileHeader struct, Modified time.Time
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Feb 06 05:00:01 GMT 2018
    - 30.1K bytes
    - Viewed (0)
  10. api/go1.4.txt

    pkg debug/elf, method (*File) DynamicSymbols() ([]Symbol, error)
    pkg debug/elf, var ErrNoSymbols error
    
    # CL 106460044 debug/plan9obj, cmd/addr2line: on Plan 9 use a.out header, Aram Hăvărneanu <******@****.***>
    pkg debug/plan9obj, type FileHeader struct, HdrSize uint64
    pkg debug/plan9obj, type FileHeader struct, LoadAddress uint64
    
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 12 03:01:01 GMT 2014
    - 34K bytes
    - Viewed (0)
Back to top