Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 178 for some (0.03 sec)

  1. src/cmd/go/internal/cache/cache.go

    		//
    		// This differs from os.WriteFile, which truncates to 0 *before* writing
    		// via os.O_TRUNC. Truncating only after writing ensures that a second write
    		// of the same content to the same file is idempotent, and does not — even
    		// temporarily! — undo the effect of the first write.
    		err = f.Truncate(int64(len(entry)))
    	}
    	if closeErr := f.Close(); err == nil {
    		err = closeErr
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcshared/cshared_test.go

    		if err != nil {
    			return fmt.Errorf("unable to find dlltool path: %v\n%s\n", err, out)
    		}
    		dlltoolpath := strings.TrimSpace(string(out))
    		if filepath.Ext(dlltoolpath) == "" {
    			// Some compilers report slash-separated paths without extensions
    			// instead of ordinary Windows paths.
    			// Try to find the canonical name for the path.
    			if lp, err := exec.LookPath(dlltoolpath); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  3. tests/scanner_valuer_test.go

    		ExampleStructPtr: &ExampleStruct{"name", "value2"},
    	}
    
    	var result ScannerValuerStruct
    	tx := DB.Where(data).FirstOrCreate(&result)
    
    	if tx.RowsAffected != 1 {
    		t.Errorf("RowsAffected should be 1 after create some record")
    	}
    
    	if tx.Error != nil {
    		t.Errorf("Should not raise any error, but got %v", tx.Error)
    	}
    
    	AssertObjEqual(t, result, data, "Name", "Gender", "Age")
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "Ctz8NonZero", argLength: 1},  // same as above, but arg[0] known to be non-zero, returns 0-7
    	{name: "Ctz16NonZero", argLength: 1}, // same as above, but arg[0] known to be non-zero, returns 0-15
    	{name: "Ctz32NonZero", argLength: 1}, // same as above, but arg[0] known to be non-zero, returns 0-31
    	{name: "Ctz64NonZero", argLength: 1}, // same as above, but arg[0] known to be non-zero, returns 0-63
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/deadstore.go

    		for _, a := range args {
    			if n, ok := addr[a]; ok && !used.Has(n) {
    				if node == nil {
    					node = n
    				} else if node != n {
    					// Most of the time we only see one pointer
    					// reaching an op, but some ops can take
    					// multiple pointers (e.g. NeqPtr, Phi etc.).
    					// This is rare, so just propagate the first
    					// value to keep things simple.
    					used.Add(n)
    					changed = true
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/issues_test.go

    		typ string
    		val string
    	}{
    		{"bool", "false"},
    		{"int", "-1"},
    		{"uint", "1.0"},
    		{"rune", "'a'"},
    		{"float64", "3.5"},
    		{"complex64", "1.25"},
    		{"string", "\"foo\""},
    
    		// some more complex constraints
    		{"~byte", "1"},
    		{"~int | ~float64 | complex128", "1"},
    		{"~uint64 | ~rune", "'X'"},
    	}
    
    	for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/bufio/bufio.go

    // Package bufio implements buffered I/O. It wraps an io.Reader or io.Writer
    // object, creating another object (Reader or Writer) that also implements
    // the interface but provides buffering and some help for textual I/O.
    package bufio
    
    import (
    	"bytes"
    	"errors"
    	"io"
    	"strings"
    	"unicode/utf8"
    )
    
    const (
    	defaultBufSize = 4096
    )
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modfetch/fetch.go

    		err := repo.Zip(ctx, f, mod.Version)
    		if err != nil {
    			// Zip may have partially written to f before failing.
    			// (Perhaps the server crashed while sending the file?)
    			// Since we allow fallback on error in some cases, we need to fix up the
    			// file to be empty again for the next attempt.
    			if _, err := f.Seek(0, io.SeekStart); err != nil {
    				unrecoverableErr = err
    				return err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. src/cmd/distpack/pack.go

    		dirMode = fs.ModeDir | f.Mode | (f.Mode&0444)>>2 // copy r bits down to x bits
    		mtime = f.Time
    		break
    	}
    
    	// mkdirAll ensures that the tar file contains directory
    	// entries for dir and all its parents. Some programs reading
    	// these tar files expect that. See go.dev/issue/61862.
    	haveDir := map[string]bool{".": true}
    	var mkdirAll func(string)
    	mkdirAll = func(dir string) {
    		if dir == "/" {
    			panic("mkdirAll /")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typeset.go

    	// elsewhere (Checker.validType), so here we simply assume we only
    	// have valid interfaces. Mark the interface as complete to avoid
    	// infinite recursion if the validType check occurs later for some
    	// reason.
    	ityp.tset = &_TypeSet{terms: allTermlist} // TODO(gri) is this sufficient?
    
    	var unionSets map[*Union]*_TypeSet
    	if check != nil {
    		if check.unionTypeSets == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top