Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for closed (0.21 sec)

  1. src/archive/zip/writer_test.go

    			}
    			continue
    		} else {
    			if !test.ok {
    				t.Fatalf("SetComment: unexpected success, want error")
    			}
    		}
    
    		if err := w.Close(); test.ok == (err != nil) {
    			t.Fatal(err)
    		}
    
    		if w.closed != test.ok {
    			t.Fatalf("Writer.closed: got %v, want %v", w.closed, test.ok)
    		}
    
    		// skip read test in failure cases
    		if !test.ok {
    			continue
    		}
    
    		// read it back
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  2. src/archive/zip/reader.go

    	dcomp := r.decompressors[method]
    	if dcomp == nil {
    		dcomp = decompressor(method)
    	}
    	return dcomp
    }
    
    // Close closes the Zip file, rendering it unusable for I/O.
    func (rc *ReadCloser) Close() error {
    	return rc.f.Close()
    }
    
    // DataOffset returns the offset of the file's possibly-compressed
    // data, relative to the beginning of the zip file.
    //
    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)
  3. src/archive/zip/writer.go

    	w.comment = comment
    	return nil
    }
    
    // Close finishes writing the zip file by writing the central directory.
    // It does not close the underlying writer.
    func (w *Writer) Close() error {
    	if w.last != nil && !w.last.closed {
    		if err := w.last.close(); err != nil {
    			return err
    		}
    		w.last = nil
    	}
    	if w.closed {
    		return errors.New("zip: writer closed twice")
    	}
    	w.closed = true
    
    	// write central directory
    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)
  4. src/builtin/builtin.go

    func clear[T ~[]Type | ~map[Type]Type1](t T)
    
    // The close built-in function closes a channel, which must be either
    // bidirectional or send-only. It should be executed only by the sender,
    // never the receiver, and has the effect of shutting down the channel after
    // the last sent value is received. After the last value has been received
    // from a closed channel c, any receive from c will succeed without
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    A <code>nil</code> channel is never ready for communication.
    </p>
    
    <p>
    A channel may be closed with the built-in function
    <a href="#Close"><code>close</code></a>.
    The multi-valued assignment form of the
    <a href="#Receive_operator">receive operator</a>
    reports whether a received value was sent before
    the channel was closed.
    </p>
    
    <p>
    A single channel may be used in
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. api/go1.8.txt

    pkg database/sql/driver, type RowsColumnTypeDatabaseTypeName interface { Close, ColumnTypeDatabaseTypeName, Columns, Next }
    pkg database/sql/driver, type RowsColumnTypeDatabaseTypeName interface, Close() error
    pkg database/sql/driver, type RowsColumnTypeDatabaseTypeName interface, Columns() []string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Dec 21 05:25:57 GMT 2016
    - 16.3K bytes
    - Viewed (0)
  7. src/cmd/asm/main.go

    	defer ctxt.Bso.Flush()
    
    	architecture.Init(ctxt)
    
    	// Create object file, write header.
    	buf, err := bio.Create(*flags.OutputFile)
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer buf.Close()
    
    	if !*flags.SymABIs {
    		buf.WriteString(objabi.HeaderString())
    		fmt.Fprintf(buf, "!\n")
    	}
    
    	// Set macros for GOEXPERIMENTs so we can easily switch
    	// runtime assembly code based on them.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  8. misc/linkcheck/linkcheck.go

    			return nil
    		}
    		crawl(newURL.String(), url)
    		return nil
    	}
    	if res.StatusCode != 200 {
    		return errors.New(res.Status)
    	}
    	slurp, err := io.ReadAll(res.Body)
    	res.Body.Close()
    	if err != nil {
    		log.Fatalf("Error reading %s body: %v", url, err)
    	}
    	if *verbose {
    		log.Printf("Len of %s: %d", url, len(slurp))
    	}
    	body := string(slurp)
    	for _, ref := range localLinks(body) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  9. src/Make.dist

    # The -v causes dist to print the name of each directory as it runs.
    # The -vv causes dist to print each build command as it runs.
    # go tool dist clean cleans all directories, not just this one,
    # but it's as close as we can get.
    
    # Default target (first).
    install:
    	go tool dist install -v
    
    verbose:
    	go tool dist install -vv
    
    clean:
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 08 20:26:47 GMT 2012
    - 553 bytes
    - Viewed (0)
  10. doc/next/6-stdlib/99-minor/net/63116.md

    The [DNSError] type now wraps errors caused by timeouts or cancellation.
    For example, `errors.Is(someDNSErr, context.DeadlineExceedeed)`
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 24 13:37:36 GMT 2024
    - 198 bytes
    - Viewed (0)
Back to top