- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValueSlice (0.14 sec)
-
pkg/api/testing/compat/compatibility_tester.go
} // Get the indexed value if an index is specified if index >= 0 { valueSlice, ok := value.([]interface{}) if !ok { return nil, false, fmt.Errorf("key %s did not hold a slice", key) } if index >= len(valueSlice) { return nil, false, fmt.Errorf("index %d out of bounds for slice at key: %v", index, key) } value = valueSlice[index] } if len(keys) == 1 { return value, true, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 20 22:26:16 UTC 2019 - 3.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/allocators.go
name string // name for alloc/free functions typ string // the type they return/accept base string // underlying allocator } func genAllocators() { allocators := []allocator{ { name: "ValueSlice", typ: "[]*Value", capacity: "cap(%s)", mak: "make([]*Value, %s)", resize: "%s[:%s]", clear: "for i := range %[1]s {\n%[1]s[i] = nil\n}", minLog: 5, maxLog: 32, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 6.7K bytes - Viewed (0)