Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for re (0.16 sec)

  1. src/cmd/cgo/internal/swig/swig_test.go

    	out, err := exec.Command(swig, "-version").CombinedOutput()
    	if err != nil {
    		t.Skipf("failed to get swig version:%s\n%s", err, string(out))
    	}
    
    	re := regexp.MustCompile(`[vV]ersion +(\d+)([.]\d+)?([.]\d+)?`)
    	matches := re.FindSubmatch(out)
    	if matches == nil {
    		// Can't find version number; hope for the best.
    		t.Logf("failed to find swig version, continuing")
    		return
    	}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/arena/arena.go

    This functionality in this package is mostly captured in the Arena type.
    Arenas allocate large chunks of memory for Go values, so they're likely to
    be inefficient for allocating only small amounts of small Go values. They're
    best used in bulk, on the order of MiB of memory allocated on each use.
    
    Note that by allowing for this limited form of manual memory allocation
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  3. src/bootstrap.bash

    ./make.bash --no-banner $forceflag
    gohostos="$(../bin/go env GOHOSTOS)"
    gohostarch="$(../bin/go env GOHOSTARCH)"
    goos="$(../bin/go env GOOS)"
    goarch="$(../bin/go env GOARCH)"
    
    # NOTE: Cannot invoke go command after this point.
    # We're about to delete all but the cross-compiled binaries.
    cd ..
    if [ "$goos" = "$gohostos" -a "$goarch" = "$gohostarch" ]; then
    	# cross-compile for local system. nothing to copy.
    	# useful if you've bootstrapped yourself but want to
    Shell Script
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jan 20 17:52:26 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/bytes/boundary_test.go

    		}
    	}
    }
    
    func TestIndexNearPageBoundary(t *testing.T) {
    	t.Parallel()
    	q := dangerousSlice(t)
    	if len(q) > 64 {
    		// Only worry about when we're near the end of a page.
    		q = q[len(q)-64:]
    	}
    	b := dangerousSlice(t)
    	if len(b) > 256 {
    		// Only worry about when we're near the end of a page.
    		b = b[len(b)-256:]
    	}
    	for j := 1; j < len(q); j++ {
    		q[j-1] = 1 // difference is only found on the last byte
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. misc/ios/README

    source; the stable versions have bugs that prevents the Go exec wrapper to install and run
    apps.
    
    Second, the Go exec wrapper must be told the developer account signing identity, the team
    id and a provisioned bundle id to use. They're specified with the environment variables
    GOIOS_DEV_ID, GOIOS_TEAM_ID and GOIOS_APP_ID. The detect.go program in this directory will
    attempt to auto-detect suitable values. Run it as
    
    	go run detect.go
    
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Dec 29 21:49:26 GMT 2020
    - 2.7K bytes
    - Viewed (0)
  6. src/bytes/buffer_test.go

    			yBytes := Repeat(y, growLen)
    			allocs := testing.AllocsPerRun(100, func() {
    				buf.Grow(growLen)
    				buf.Write(yBytes)
    			})
    			// Check no allocation occurs in write, as long as we're single-threaded.
    			if allocs != 0 {
    				t.Errorf("allocation occurred during write")
    			}
    			// Check that buffer has correct data.
    			if !Equal(buf.Bytes()[0:startLen-readBytes], xBytes[readBytes:]) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 20 01:07:29 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  7. doc/go1.17_spec.html

    		and the function may assign values to them as necessary.
    		The "return" statement returns the values of these variables.
    <pre>
    func complexF3() (re float64, im float64) {
    	re = 7.0
    	im = 4.0
    	return
    }
    
    func (devnull) Write(p []byte) (n int, _ error) {
    	n = len(p)
    	return
    }
    </pre>
    	</li>
    </ol>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  8. src/archive/tar/writer.go

    	}
    	return tw.writeRawHeader(blk, hdr.Size, hdr.Typeflag)
    }
    
    func (tw *Writer) writePAXHeader(hdr *Header, paxHdrs map[string]string) error {
    	realName, realSize := hdr.Name, hdr.Size
    
    	// TODO(dsnet): Re-enable this when adding sparse support.
    	// See https://golang.org/issue/22735
    	/*
    		// Handle sparse files.
    		var spd sparseDatas
    		var spb []byte
    		if len(hdr.SparseHoles) > 0 {
    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)
  9. src/archive/zip/reader_test.go

    		// TODO(bradfitz): add a new test that only corrupts
    		// one of these values, and verify that that's also an
    		// error. Currently, the reader code doesn't verify the
    		// fileheader and TOC's crc32 match if they're both
    		// non-zero and only the second line above, the TOC,
    		// is what matters.
    	})
    }
    
    // rZipBytes returns the bytes of a recursive zip file, without
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/input.go

    	}
    }
    
    func (in *Input) Next() ScanToken {
    	if in.peek {
    		in.peek = false
    		tok := in.peekToken
    		in.text = in.peekText
    		return tok
    	}
    	// If we cannot generate a token after 100 macro invocations, we're in trouble.
    	// The usual case is caught by Push, below, but be safe.
    	for nesting := 0; nesting < 100; {
    		tok := in.Stack.Next()
    		switch tok {
    		case '#':
    			if !in.beginningOfLine {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
Back to top