Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for open (0.17 sec)

  1. src/archive/zip/fuzz_test.go

    			content []byte
    		}
    		files := []file{}
    
    		for _, f := range r.File {
    			fr, err := f.Open()
    			if err != nil {
    				continue
    			}
    			content, err := io.ReadAll(fr)
    			if err != nil {
    				continue
    			}
    			files = append(files, file{header: &f.FileHeader, content: content})
    			if _, err := r.Open(f.Name); err != nil {
    				continue
    			}
    		}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    		names = append(names, f.Name)
    		if _, err := f.Open(); err != nil {
    			t.Errorf("Error opening %q: %v", f.Name, err)
    		}
    		if _, err := r.Open(f.Name); err == nil {
    			t.Errorf("Opening %q with fs.FS API succeeded", f.Name)
    		}
    	}
    	if !reflect.DeepEqual(names, entryNames) {
    		t.Errorf("Unexpected file entries: %q", names)
    	}
    	if _, err := r.Open(""); err == nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/cmd/api/api_test.go

    )
    
    func TestGolden(t *testing.T) {
    	if *flagCheck {
    		// slow, not worth repeating in -check
    		t.Skip("skipping with -check set")
    	}
    
    	testenv.MustHaveGoBuild(t)
    
    	td, err := os.Open("testdata/src/pkg")
    	if err != nil {
    		t.Fatal(err)
    	}
    	fis, err := td.Readdir(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, fi := range fis {
    		if !fi.IsDir() {
    			continue
    		}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. misc/wasm/wasm_exec.js

    			lchown(path, uid, gid, callback) { callback(enosys()); },
    			link(path, link, callback) { callback(enosys()); },
    			lstat(path, callback) { callback(enosys()); },
    			mkdir(path, perm, callback) { callback(enosys()); },
    			open(path, flags, mode, callback) { callback(enosys()); },
    			read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
    			readdir(path, callback) { callback(enosys()); },
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  5. api/go1.3.txt

    pkg debug/plan9obj, func Open(string) (*File, error)
    pkg debug/plan9obj, method (*File) Close() error
    pkg debug/plan9obj, method (*File) Section(string) *Section
    pkg debug/plan9obj, method (*File) Symbols() ([]Sym, error)
    pkg debug/plan9obj, method (*Section) Data() ([]uint8, error)
    pkg debug/plan9obj, method (*Section) Open() io.ReadSeeker
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  6. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const SYS_NTP_GETTIME ideal-int
    pkg syscall (netbsd-arm64-cgo), const SYS_OPEN = 5
    pkg syscall (netbsd-arm64-cgo), const SYS_OPENAT = 468
    pkg syscall (netbsd-arm64-cgo), const SYS_OPENAT ideal-int
    pkg syscall (netbsd-arm64-cgo), const SYS_OPEN ideal-int
    pkg syscall (netbsd-arm64-cgo), const SYS_PACCEPT = 456
    pkg syscall (netbsd-arm64-cgo), const SYS_PACCEPT ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  7. README.md

    # The Go Programming Language
    
    Go is an open source programming language that makes it easy to build simple,
    reliable, and efficient software.
    
    ![Gopher image](https://golang.org/doc/gopher/fiveyears.jpg)
    *Gopher image by [Renee French][rf], licensed under [Creative Commons 4.0 Attributions license][cc4-by].*
    
    Our canonical Git repository is located at https://go.googlesource.com/go.
    There is a mirror of the repository at https://github.com/golang/go.
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Nov 02 20:14:56 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  8. src/archive/tar/example_test.go

    			log.Fatal(err)
    		}
    		if _, err := tw.Write([]byte(file.Body)); err != nil {
    			log.Fatal(err)
    		}
    	}
    	if err := tw.Close(); err != nil {
    		log.Fatal(err)
    	}
    
    	// Open and iterate through the files in the archive.
    	tr := tar.NewReader(&buf)
    	for {
    		hdr, err := tr.Next()
    		if err == io.EOF {
    			break // End of archive
    		}
    		if err != nil {
    			log.Fatal(err)
    		}
    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)
  9. src/archive/zip/example_test.go

    		log.Fatal(err)
    	}
    }
    
    func ExampleReader() {
    	// Open a zip archive for reading.
    	r, err := zip.OpenReader("testdata/readme.zip")
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer r.Close()
    
    	// Iterate through the files in the archive,
    	// printing some of their contents.
    	for _, f := range r.File {
    		fmt.Printf("Contents of %s:\n", f.Name)
    		rc, err := f.Open()
    		if err != nil {
    			log.Fatal(err)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
  10. src/archive/zip/reader.go

    	return xdir < ydir || xdir == ydir && xelem < yelem
    }
    
    // Open opens the named file in the ZIP archive,
    // using the semantics of fs.FS.Open:
    // paths are always slash separated, with no
    // leading / or ../ elements.
    func (r *Reader) Open(name string) (fs.File, error) {
    	r.initFileList()
    
    	if !fs.ValidPath(name) {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrInvalid}
    	}
    	e := r.openLookup(name)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top