Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for finished (0.23 sec)

  1. doc/go1.17_spec.html

    </li>
    </ul>
    
    <p>
    For example, given the declarations
    </p>
    
    <pre>
    var (
    	a = c + b  // == 9
    	b = f()    // == 4
    	c = f()    // == 5
    	d = 3      // == 5 after initialization has finished
    )
    
    func f() int {
    	d++
    	return d
    }
    </pre>
    
    <p>
    the initialization order is <code>d</code>, <code>b</code>, <code>c</code>, <code>a</code>.
    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)
  2. doc/go_spec.html

    <code>string</code> takes the place of <code>P</code>.
    And since <code>string</code> is identical to <code>string</code>,
    this unification step succeeds as well.
    Unification of the LHS and RHS of the equation is now finished.
    Type inference succeeds because there is only one type equation,
    no unification step failed, and the map is fully populated.
    </p>
    
    <p>
    Unification uses a combination of <i>exact</i> and <i>loose</i>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  3. src/archive/tar/writer.go

    func NewWriter(w io.Writer) *Writer {
    	return &Writer{w: w, curr: &regFileWriter{w, 0}}
    }
    
    type fileWriter interface {
    	io.Writer
    	fileState
    
    	ReadFrom(io.Reader) (int64, error)
    }
    
    // Flush finishes writing the current file's block padding.
    // The current file must be fully written before Flush can be called.
    //
    // This is unnecessary as the next call to [Writer.WriteHeader] or [Writer.Close]
    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)
  4. src/bufio/scan.go

    	err          error     // Sticky error.
    	empties      int       // Count of successive empty tokens.
    	scanCalled   bool      // Scan has been called; buffer is in use.
    	done         bool      // Scan has finished.
    }
    
    // SplitFunc is the signature of the split function used to tokenize the
    // input. The arguments are an initial substring of the remaining unprocessed
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    	sp  sparseHoles // Normalized list of sparse holes
    	pos int64       // Current position in sparse file
    }
    
    func (sr *sparseFileReader) Read(b []byte) (n int, err error) {
    	finished := int64(len(b)) >= sr.logicalRemaining()
    	if finished {
    		b = b[:sr.logicalRemaining()]
    	}
    
    	b0 := b
    	endPos := sr.pos + int64(len(b))
    	for endPos > sr.pos && err == nil {
    		var nf int // Bytes read in fragment
    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)
  6. src/cmd/cgo/gcc.go

    		}
    		arg[i] = r
    		i++
    	}
    	if quoted || i > 0 {
    		args = append(args, string(arg[:i]))
    	}
    	if quote != 0 {
    		err = errors.New("unclosed quote")
    	} else if escaped {
    		err = errors.New("unfinished escaping")
    	}
    	return args, err
    }
    
    // Translate rewrites f.AST, the original Go input, to remove
    // references to the imported package C, replacing them with
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. misc/go_android_exec/exitcode_test.go

    	}
    
    	// The "pre" output should all have been flushed already.
    	if want, got := pre, out.String(); want != got {
    		t.Errorf("filter should have already flushed %q, but flushed %q", want, got)
    	}
    
    	code, err := f.Finish()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Nothing more should have been written to out.
    	if want, got := pre, out.String(); want != got {
    		t.Errorf("want output %q, got %q", want, got)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed May 03 14:54:58 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  8. misc/go_android_exec/main.go

    	// along stderr from adb.
    	cmd.Stderr = struct{ io.Writer }{os.Stderr}
    	err := cmd.Run()
    
    	// Before we process err, flush any further output and get the exit code.
    	exitCode, err2 := filter.Finish()
    
    	if err != nil {
    		return 0, fmt.Errorf("adb exec-out %s: %v", args, err)
    	}
    	return exitCode, err2
    }
    
    func adb(args ...string) error {
    	if out, err := adbCmd(args...).CombinedOutput(); err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  9. src/bufio/scan_test.go

    	for scanner.Scan() {
    		t.Fatal("read should fail")
    	}
    	err := scanner.Err()
    	if err != io.ErrUnexpectedEOF {
    		t.Errorf("unexpected error: %v", err)
    	}
    }
    
    // Test that Scan finishes if we have endless empty reads.
    type endlessZeros struct{}
    
    func (endlessZeros) Read(p []byte) (int, error) {
    	return 0, nil
    }
    
    func TestBadReader(t *testing.T) {
    	scanner := NewScanner(endlessZeros{})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  10. src/archive/zip/writer.go

    func (w *Writer) SetComment(comment string) error {
    	if len(comment) > uint16max {
    		return errors.New("zip: Writer.Comment too long")
    	}
    	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
    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