- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for AddFS (0.16 sec)
-
api/go1.22.txt
pkg archive/tar, method (*Writer) AddFS(fs.FS) error #58000 pkg archive/zip, method (*Writer) AddFS(fs.FS) error #54898 pkg cmp, func Or[$0 comparable](...$0) $0 #60204 pkg crypto/x509, func OIDFromInts([]uint64) (OID, error) #60665 pkg crypto/x509, method (*CertPool) AddCertWithConstraint(*Certificate, func([]*Certificate) error) #57178 pkg crypto/x509, method (OID) Equal(OID) bool #60665 pkg crypto/x509, method (OID) EqualASN1OID(asn1.ObjectIdentifier) bool #60665
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Jan 24 20:54:27 GMT 2024 - 7.7K bytes - Viewed (0) -
src/archive/zip/writer_test.go
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri Sep 15 19:04:06 GMT 2023 - 14.1K bytes - Viewed (0) -
src/archive/tar/writer.go
} tw.curr = ®FileWriter{tw.w, size} tw.pad = blockPadding(size) return nil } // 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 tar archive while maintaining the directory structure. func (tw *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 23 11:13:09 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 19.6K bytes - Viewed (0) -
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 {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Apr 04 14:28:57 GMT 2024 - 19.3K bytes - Viewed (0) -
doc/go1.22.html
</p> <dl id="archive/tar"><dt><a href="/pkg/archive/tar/">archive/tar</a></dt> <dd> <p><!-- https://go.dev/issue/58000, CL 513316 --> The new method <a href="/pkg/archive/tar#Writer.AddFS"><code>Writer.AddFS</code></a> adds all of the files from an <a href="/pkg/io/fs#FS"><code>fs.FS</code></a> to the archive. </p> </dd> </dl><!-- archive/tar -->
HTML - Registered: Tue Feb 06 11:13:10 GMT 2024 - Last Modified: Wed Jan 31 20:51:56 GMT 2024 - 45.6K bytes - Viewed (0) -
src/archive/tar/writer_test.go
fsys := fstest.MapFS{ "file.go": {Data: []byte("hello")}, "subfolder/another.go": {Data: []byte("world")}, } var buf bytes.Buffer tw := NewWriter(&buf) if err := tw.AddFS(fsys); err != nil { t.Fatal(err) } // Test that we can get the files back from the archive tr := NewReader(&buf) entries, err := fsys.ReadDir(".") if err != nil { t.Fatal(err)
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Tue Feb 27 16:39:23 GMT 2024 - 38.7K bytes - Viewed (0)