- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 570 for index (0.07 sec)
-
src/cmd/internal/obj/stringer.go
const prefix = "= obj.ABase" index := strings.Index(line, prefix) if index < 0 { continue } // It's on. Start with the header. fmt.Fprintf(out, header, *input, *output, *pkg, *pkg) on = true line = line[:index] } // Strip comments so their text won't defeat our heuristic. index := strings.Index(line, "//") if index > 0 { line = line[:index] } index = strings.Index(line, "/*")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 2.2K bytes - Viewed (0) -
src/internal/bytealg/index_native.go
//go:build amd64 || arm64 || s390x || ppc64le || ppc64 package bytealg // Index returns the index of the first instance of b in a, or -1 if b is not present in a. // Requires 2 <= len(b) <= MaxLen. // //go:noescape func Index(a, b []byte) int // IndexString returns the index of the first instance of b in a, or -1 if b is not present in a. // Requires 2 <= len(b) <= MaxLen. // //go:noescape
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 02 22:56:35 UTC 2023 - 590 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue45635.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 615 bytes - Viewed (0) -
pilot/pkg/serviceregistry/util/workloadinstances/index_test.go
Address: "2.2.2.2", Labels: map[string]string{"app": "wle"}, }, } index := NewIndex() // test update index.Insert(wi1) index.Insert(wi2) index.Insert(wi3) index.Insert(wi4) // test search by service selector actual := FindAllInIndex(index, ByServiceSelector(selector.Namespace, labels.Instance{"app": "wle"})) want := []*model.WorkloadInstance{wi1, wi2}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 5K bytes - Viewed (0) -
test/fixedbugs/issue13365.go
package main var t struct{} func main() { _ = []int{-1: 0} // ERROR "index must be non\-negative integer constant|index expression is negative|must not be negative" _ = [10]int{-1: 0} // ERROR "index must be non\-negative integer constant|index expression is negative|must not be negative" _ = [...]int{-1: 0} // ERROR "index must be non\-negative integer constant|index expression is negative|must not be negative" _ = []int{100: 0}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 17:21:15 UTC 2022 - 1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/internal/tag/tag.go
// considered for the search and the first match in Index will be returned. func (s Index) Index(key []byte) int { n := len(key) // search the index of the first entry with an equal or higher value than // key in s. index := sort.Search(len(s)/4, func(i int) bool { return cmp(s[i*4:i*4+n], key) != -1 }) i := index * 4 if cmp(s[i:i+len(key)], key) != 0 { return -1 } return index }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 2.4K bytes - Viewed (0) -
pkg/kube/kclient/index_test.go
assert.EventuallyEqual(t, func() int { index.mu.RLock() defer index.mu.RUnlock() return len(index.objects) }, 0) } func TestIndexDelegate(t *testing.T) { c := kube.NewFakeClient() pods := New[*corev1.Pod](c) c.RunAndWait(test.NewStop(t)) var index *Index[string, *corev1.Pod] adds := atomic.NewInt32(0)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 04 03:49:30 UTC 2023 - 5.7K bytes - Viewed (0) -
pkg/registry/rbac/validation/rule_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go
} func (m *IntOrString) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 9.5K bytes - Viewed (0) -
src/vendor/golang.org/x/net/idna/trie12.0.0.go
index := int(c >> indexShift) if c&xorBit == 0 { s := mappings[index:] return append(b, s[1:s[0]+1]...) } b = append(b, s...) if c&inlineXOR == inlineXOR { // TODO: support and handle two-byte inline masks b[len(b)-1] ^= byte(index) } else { for p := len(b) - int(xorData[index]); p < len(b); p++ { index++ b[p] ^= xorData[index] } } return b
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 852 bytes - Viewed (0)