Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for noninterface (0.3 sec)

  1. test/typeswitch3.go

    	var r io.Reader
    
    	_, _ = r.(io.Writer)
    
    	switch r.(type) {
    	case io.Writer:
    	}
    
    	// Issue 2827.
    	switch _ := r.(type) { // ERROR "invalid variable name _|no new variables?"
    	}
    }
    
    func noninterface() {
    	var i int
    	switch i.(type) { // ERROR "cannot type switch on non-interface value|not an interface"
    	case string:
    	case int:
    	}
    
    	type S struct {
    		name string
    	}
    	var s S
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 12 22:20:51 UTC 2021
    - 999 bytes
    - Viewed (0)
  2. src/go/internal/gccgoimporter/testdata/nointerface.gox

    v3;
    package nointerface
    pkgpath nointerface
    types 3 2 133 17
    type 1 "I" <type -11>
     func /*nointerface*/ (p <esc:0x1> <type 2>) Get () <type -11>
     func (p <esc:0x1> <type 2>) Set (v <type -11>)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 04 15:52:48 UTC 2018
    - 211 bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/testdata/nointerface.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package nointerface
    
    type I int
    
    //go:nointerface
    func (p *I) Get() int { return int(*p) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 04 15:52:48 UTC 2018
    - 289 bytes
    - Viewed (0)
  4. pkg/kubelet/logs/container_log_manager.go

    	if !ok {
    		return 0, fmt.Errorf("invalid max log size")
    	}
    	return maxSize, nil
    }
    
    type containerLogManager struct {
    	runtimeService   internalapi.RuntimeService
    	osInterface      kubecontainer.OSInterface
    	policy           LogRotatePolicy
    	clock            clock.Clock
    	mutex            sync.Mutex
    	queue            workqueue.TypedRateLimitingInterface[string]
    	maxWorkers       int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. src/go/types/interface.go

    var emptyInterface = Interface{complete: true, tset: &topTypeSet}
    
    // NewInterface returns a new interface for the given methods and embedded types.
    // NewInterface takes ownership of the provided methods and may modify their types
    // by setting missing receivers.
    //
    // Deprecated: Use NewInterfaceType instead which allows arbitrary embedded types.
    func NewInterface(methods []*Func, embeddeds []*Named) *Interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/host_stats_provider_fake.go

    func NewFakeHostStatsProviderWithData(fakeStats map[string]*volume.Metrics, osInterface kubecontainer.OSInterface) HostStatsProvider {
    	return &fakeHostStatsProvider{
    		fakeStats:   fakeStats,
    		osInterface: osInterface,
    	}
    }
    
    func (f *fakeHostStatsProvider) getPodLogStats(podNamespace, podName string, podUID types.UID, rootFsInfo *cadvisorapiv2.FsInfo) (*statsapi.FsStats, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:57:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. pkg/kubelet/stats/host_stats_provider.go

    }
    
    // NewHostStatsProvider returns a new HostStatsProvider type struct.
    func NewHostStatsProvider(osInterface kubecontainer.OSInterface, podEtcHostsPathFunc PodEtcHostsPathFunc, podLogsDirectory string) HostStatsProvider {
    	return hostStatsProvider{
    		osInterface:         osInterface,
    		podEtcHostsPathFunc: podEtcHostsPathFunc,
    		podLogsDirectory:    podLogsDirectory,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/fake_kuberuntime_manager.go

    	ctx := context.Background()
    	recorder := &record.FakeRecorder{}
    	logManager, err := logs.NewContainerLogManager(runtimeService, osInterface, "1", 2, 10, metav1.Duration{Duration: 10 * time.Second})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types/universe.go

    	})
    	method := NewField(src.NoXPos, LocalPkg.Lookup("Error"), sig)
    	return NewInterface([]*Field{method})
    }
    
    // makeComparableInterface makes the predefined "comparable" interface in the
    // built-in package. It has a unique name, but no methods.
    func makeComparableInterface() *Type {
    	return NewInterface(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_op_interfaces.td

      }];
    }
    
    //===----------------------------------------------------------------------===//
    // TFL op interface for stateful operands.
    
    def TFL_StatefulOp : OpInterface<"StatefulOpInterface"> {
      let description = [{
        Interface for ops that are stateful and need to identify stateful operands.
    
        Stateful operands correspond to TF's variables semantics. An op that has 1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top