Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 428 for typed (0.13 sec)

  1. test/const3.go

    // Test typed integer constants.
    
    package main
    
    import "fmt"
    
    type T int
    
    func (t T) String() string { return fmt.Sprintf("T%d", int(t)) }
    
    const (
    	A T = 1 << (1 << iota)
    	B
    	C
    	D
    	E
    )
    
    func main() {
    	s := fmt.Sprintf("%v %v %v %v %v", A, B, C, D, E)
    	if s != "T2 T4 T16 T256 T65536" {
    		println("type info didn't propagate in const: got", s)
    		panic("fail")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 659 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/doc.go

    //
    // The unsafeptr analyzer reports likely incorrect uses of unsafe.Pointer
    // to convert integers to pointers. A conversion from uintptr to
    // unsafe.Pointer is invalid if it implies that there is a uintptr-typed
    // word in memory that holds a pointer value, because that word will be
    // invisible to stack copying and to the garbage collector.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 738 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/format/formatting.go

    	buf.WriteString(fmt.Sprintf("flowcontrolv1.PriorityLevelConfigurationSpec{Type: %#v", plSpec.Type))
    	if plSpec.Limited != nil {
    		buf.WriteString(fmt.Sprintf(", Limited: &flowcontrol.LimitedPriorityLevelConfiguration{NominalConcurrencyShares:%d, LimitResponse:flowcontrol.LimitResponse{Type:%#v", plSpec.Limited.NominalConcurrencyShares, plSpec.Limited.LimitResponse.Type))
    		if plSpec.Limited.LimitResponse.Queuing != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_cr_client.go

    */
    
    // Code generated by client-gen. DO NOT EDIT.
    
    package fake
    
    import (
    	v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1"
    	rest "k8s.io/client-go/rest"
    	testing "k8s.io/client-go/testing"
    )
    
    type FakeCrV1 struct {
    	*testing.Fake
    }
    
    func (c *FakeCrV1) Examples(namespace string) v1.ExampleInterface {
    	return &FakeExamples{c, namespace}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 08 09:52:48 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/doc.go

    limitations under the License.
    */
    
    // Package generic contains a typed wrapper over cache SharedIndexInformer
    // and Lister (maybe eventually should have a home there?)
    //
    // This interface is being experimented with as an easier way to write controllers
    // with a bit less boilerplate.
    //
    // Informer/Lister classes are thin wrappers providing a type-safe interface
    // over regular interface{}-based Informers/Listers
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/clientset.go

    	"net/http"
    
    	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1"
    	apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1"
    	discovery "k8s.io/client-go/discovery"
    	rest "k8s.io/client-go/rest"
    	flowcontrol "k8s.io/client-go/util/flowcontrol"
    )
    
    type Interface interface {
    	Discovery() discovery.DiscoveryInterface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 21:36:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. test/makechan.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Ensure that typed non-integer, negative and too large
    // values are not accepted as size argument in make for
    // channels.
    
    package main
    
    type T chan byte
    
    var sink T
    
    func main() {
    	sink = make(T, -1)            // ERROR "negative buffer argument in make.*|must not be negative"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 1K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue50426.go

    package p
    
    type A1 [2]uint64
    type A2 [2]uint64
    
    func (a A1) m() A1 { return a }
    func (a A2) m() A2 { return a }
    
    func f[B any, T interface {
    	A1 | A2
    	m() T
    }](v T) {
    }
    
    func _() {
    	var v A2
    	// Use function type inference to infer type A2 for T.
    	// Don't use constraint type inference before function
    	// type inference for typed arguments, otherwise it would
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  9. pkg/registry/flowcontrol/ensurer/flowschema.go

    limitations under the License.
    */
    
    package ensurer
    
    import (
    	flowcontrolv1 "k8s.io/api/flowcontrol/v1"
    	"k8s.io/apimachinery/pkg/api/equality"
    	flowcontrolclient "k8s.io/client-go/kubernetes/typed/flowcontrol/v1"
    	flowcontrollisters "k8s.io/client-go/listers/flowcontrol/v1"
    	flowcontrolapisv1 "k8s.io/kubernetes/pkg/apis/flowcontrol/v1"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/reflect/HasPublicType.java

     * Allows a scriptable object, such as a project extension, to declare its preferred public type.
     *
     * The public type of an object is the one exposed to statically-typed consumers, such as Kotlin build scripts, by default.
     *
     * @since 3.5
     */
    public interface HasPublicType {
    
        /**
         * Public type.
         *
         * @return this object's public type
         */
        TypeOf<?> getPublicType();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 11 20:41:53 UTC 2018
    - 1K bytes
    - Viewed (0)
Back to top