- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 5,247 for Imethod (0.26 sec)
-
test/method1.go
// errorcheck // 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. // Verify that method redeclarations are caught by the compiler. // Does not compile. package main type T struct{} func (t *T) M(int, string) // GCCGO_ERROR "previous" func (t *T) M(int, float64) {} // ERROR "already declared|redefinition"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:59:19 UTC 2022 - 739 bytes - Viewed (0) -
test/method7.go
type Outer struct{ *Inner } type Inner struct{ s string } func (i Inner) M() string { return i.s } func main() { // method expressions with named receiver types I.m(S{}) want += " m()" S.m1(S{}, "a") want += " m1(a)" // method expressions with literal receiver types f := interface{ m1(string) }.m1 f(S{}, "b") want += " m1(b)" interface{ m1(string) }.m1(S{}, "c")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 26 17:05:06 UTC 2021 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/valid/multicluster/httproute-method.yaml
#$ Used in: #$ - geps/gep-1748.md kind: HTTPRoute apiVersion: gateway.networking.k8s.io/v1beta1 metadata: name: api spec: parentRefs: - name: api-gw rules: - matches: - method: POST - method: PUT - method: DELETE backendRefs: - group: multicluster.x-k8s.io kind: ServiceImport name: api-primary port: 8080 - backendRefs: - group: multicluster.x-k8s.io
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 17:15:18 UTC 2023 - 474 bytes - Viewed (0) -
src/internal/types/testdata/examples/methods.go
// This file shows some examples of methods on type-parameterized types. package p // Parameterized types may have methods. type T1[A any] struct{ a A } // When declaring a method for a parameterized type, the "instantiated" // receiver type acts as an implicit declaration of the type parameters // for the receiver type. In the example below, method m1 on type T1 has
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5K bytes - Viewed (0) -
test/method5.go
// run // Copyright 2013 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 main // Concrete types implementing M method. // Smaller than a word, word-sized, larger than a word. // Value and pointer receivers. type Tinter interface { M(int, byte) (byte, int) } type Tsmallv byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 6.7K bytes - Viewed (0) -
src/net/http/method.go
// Copyright 2015 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 http // Common HTTP methods. // // Unless otherwise noted, these are defined in RFC 7231 section 4.3. const ( MethodGet = "GET" MethodHead = "HEAD" MethodPost = "POST" MethodPut = "PUT" MethodPatch = "PATCH" // RFC 5789 MethodDelete = "DELETE"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 04 22:11:56 UTC 2016 - 517 bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
"type:internal/abi.PtrType", "type:internal/abi.SliceType", "type:internal/abi.StructType", "type:internal/abi.InterfaceType", "type:internal/abi.ITab", "type:internal/abi.Imethod"} { d.defgotype(d.lookupOrDiag(typ)) } // fake root DIE for compile unit DIEs var dwroot dwarf.DWDie flagVariants := make(map[string]bool) for _, lib := range ctxt.Library {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
src/reflect/type.go
// NumMethod returns the number of interface methods in the type's method set. func (t *interfaceType) NumMethod() int { return len(t.Methods) } // MethodByName method with the given name in the type's method set. func (t *interfaceType) MethodByName(name string) (m Method, ok bool) { if t == nil { return } var p *abi.Imethod for i := range t.Methods { p = &t.Methods[i] if t.nameOff(p.Name).Name() == name {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/configuration-factory-methods.txt
Method <org.gradle.api.plugins.BasePlugin.configureConfigurations(org.gradle.api.Project)> calls method <org.gradle.api.internal.artifacts.configurations.RoleBasedConfigurationContainerInternal.maybeCreateConsumableUnlocked(java.lang.String)> in (BasePlugin.java:0)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 05 08:43:33 UTC 2024 - 8.7K bytes - Viewed (0) -
test/method3.go
// run // 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 methods on slices. package main type T []int func (t T) Len() int { return len(t) } type I interface { Len() int } func main() { var t T = T{0, 1, 2, 3, 4} var i I i = t if i.Len() != 5 { println("i.Len", i.Len())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 07:47:26 UTC 2012 - 570 bytes - Viewed (0)