- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of about 10,000 for interface4 (0.32 sec)
-
test/interface/bigdata.go
// Copyright 2009 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. // Test big vs. small, pointer vs. value interface methods. package main type I interface { M() int64 } type BigPtr struct { a, b, c, d int64 } func (z *BigPtr) M() int64 { return z.a+z.b+z.c+z.d } type SmallPtr struct { a int32 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:33:41 UTC 2012 - 1.4K bytes - Viewed (0) -
test/escape_reflect.go
func interface1(x any) any { // ERROR "leaking param: x$" v := reflect.ValueOf(x) return v.Interface() } func interface2(x int) any { v := reflect.ValueOf(x) // ERROR "x escapes to heap" return v.Interface() } // Unfortunate: should not escape. func interface3(x int) int { v := reflect.ValueOf(x) // ERROR "x escapes to heap" return v.Interface().(int) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 13.1K bytes - Viewed (0) -
src/go/types/interface.go
func (t *Interface) Method(i int) *Func { return t.typeSet().Method(i) } // Empty reports whether t is the empty interface. func (t *Interface) Empty() bool { return t.typeSet().IsAll() } // IsComparable reports whether each type in interface t's type set is comparable. func (t *Interface) IsComparable() bool { return t.typeSet().IsComparable(nil) } // IsMethodSet reports whether the interface t is fully described by its method // set.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/interface.go
} // networkInterfacer defines an interface for several net library functions. Production // code will forward to net library functions, and unit tests will override the methods // for testing purposes. type networkInterfacer interface { InterfaceByName(intfName string) (*net.Interface, error) Addrs(intf *net.Interface) ([]net.Addr, error) Interfaces() ([]net.Interface, error) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 07:07:03 UTC 2022 - 14.7K bytes - Viewed (0) -
src/net/interface.go
FlagBroadcast // interface supports broadcast access capability FlagLoopback // interface is a loopback interface FlagPointToPoint // interface belongs to a point-to-point link FlagMulticast // interface supports multicast access capability FlagRunning // interface is in running state )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticator/interfaces.go
// returns a Response or an error if the token could not be checked. type Token interface { AuthenticateToken(ctx context.Context, token string) (*Response, bool, error) } // Request attempts to extract authentication information from a request and // returns a Response or an error if the request could not be checked. type Request interface { AuthenticateRequest(req *http.Request) (*Response, bool, error) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 12 00:55:47 UTC 2020 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/interfaces.go
// AddValue set a value for a plugin name, possibly overriding a previous value. SetValue(plugin string, v interface{}) // Value reads a value for a webhook. Value(plugin string) interface{} } // Interface is an abstract, pluggable interface for Admission Control decisions. type Interface interface { // Handles returns true if this admission controller can handle the given operation
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 28 14:03:18 UTC 2021 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/interfaces.go
// to API groups. In other words, kinds and resources should not be assumed to be // unique across groups. // // TODO: split into sub-interfaces type RESTMapper interface { // KindFor takes a partial resource and returns the single match. Returns an error if there are multiple matches KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 05 23:44:02 UTC 2021 - 5.5K bytes - Viewed (0) -
pkg/kubelet/lifecycle/interfaces.go
} // PodSyncTarget maintains a list of handlers to pod sync. type PodSyncTarget interface { // AddPodSyncHandler adds the specified handler AddPodSyncHandler(a PodSyncHandler) } // PodLifecycleTarget groups a set of lifecycle interfaces for convenience. type PodLifecycleTarget interface { PodAdmitTarget PodSyncLoopTarget PodSyncTarget }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 22 17:25:57 UTC 2017 - 4K bytes - Viewed (0) -
src/go/parser/testdata/interface.go2
// license that can be found in the LICENSE file. // This file contains test cases for interfaces containing // constraint elements. package p type _ interface { m() ~int ~int|string E } type _ interface { m() ~int int | string int | ~string ~int | ~string } type _ interface { m() ~int T[int, string] | string int | ~T[string, struct{}] ~int | ~string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 15:34:22 UTC 2021 - 1.1K bytes - Viewed (0)