Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for nilfunc (0.15 sec)

  1. src/cmd/go/alldocs.go

    // binary. Only a high-confidence subset of the default go vet checks are
    // used. That subset is: atomic, bool, buildtags, directive, errorsas,
    // ifaceassert, nilfunc, printf, and stringintconv. You can see
    // the documentation for these and other vet tests via "go doc cmd/vet".
    // To disable the running of go vet, use the -vet=off flag. To run all
    // checks, use the -vet=all flag.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	newFunc := func() runtime.Object { return &example.Pod{} }
    	newListFunc := func() runtime.Object { return &example.PodList{} }
    
    	sc.Codec = apitesting.TestStorageCodec(codecs, examplev1.SchemeGroupVersion)
    	s, dFunc, err := factory.Create(*sc.ForResource(schema.GroupResource{Resource: "pods"}), newFunc, newListFunc, "/pods")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname drivers
    var drivers = make(map[string]driver.Driver)
    
    // nowFunc returns the current time; it's overridden in tests.
    var nowFunc = time.Now
    
    // Register makes a database driver available by the provided name.
    // If Register is called twice with the same name or if driver is nil,
    // it panics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. src/database/sql/sql_test.go

    		t.Errorf("stats.OpenConnections = %d; want 0", got)
    	}
    }
    
    func TestConnMaxLifetime(t *testing.T) {
    	t0 := time.Unix(1000000, 0)
    	offset := time.Duration(0)
    
    	nowFunc = func() time.Time { return t0.Add(offset) }
    	defer func() { nowFunc = time.Now }()
    
    	db := newTestDB(t, "magicquery")
    	defer closeDB(t, db)
    
    	driver := db.Driver().(*fakeDriver)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/data.go

    		align = int32(Funcalign)
    	}
    	va = uint64(Rnd(int64(va), int64(align)))
    	if sect.Align < align {
    		sect.Align = align
    	}
    
    	funcsize := uint64(abi.MINFUNC) // spacing required for findfunctab
    	if ldr.SymSize(s) > abi.MINFUNC {
    		funcsize = uint64(ldr.SymSize(s))
    	}
    
    	// If we need to split text sections, and this function doesn't fit in the current
    	// section, then create a new one.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    	printInt(i)                            // type of i is int
    } else if i, isFloat64 := v.(float64); isFloat64 {
    	printFloat64(i)                        // type of i is float64
    } else if i, isFunc := v.(func(int) float64); isFunc {
    	printFunction(i)                       // type of i is func(int) float64
    } else {
    	_, isBool := v.(bool)
    	_, isString := v.(string)
    	if isBool || isString {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top