Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Zach (0.2 sec)

  1. src/archive/tar/writer.go

    	if len(paxHdrs) > 0 || isGlobal {
    		// Sort keys for deterministic ordering.
    		var keys []string
    		for k := range paxHdrs {
    			keys = append(keys, k)
    		}
    		sort.Strings(keys)
    
    		// Write each record to a buffer.
    		var buf strings.Builder
    		for _, k := range keys {
    			rec, err := formatPAXRecord(k, paxHdrs[k])
    			if err != nil {
    				return err
    			}
    			buf.WriteString(rec)
    		}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  2. src/archive/zip/writer.go

    		w.compressors = make(map[uint16]Compressor)
    	}
    	w.compressors[method] = comp
    }
    
    // AddFS adds the files from fs.FS to the archive.
    // It walks the directory tree starting at the root of the filesystem
    // adding each file to the zip using deflate while maintaining the directory structure.
    func (w *Writer) AddFS(fsys fs.FS) error {
    	return fs.WalkDir(fsys, ".", func(name string, d fs.DirEntry, err error) error {
    		if err != nil {
    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)
Back to top