- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for SLICE (0.09 sec)
-
src/html/template/exec_test.go
// Slicing. {"slice[:]", "{{slice .SI}}", "[3 4 5]", tVal, true}, {"slice[1:]", "{{slice .SI 1}}", "[4 5]", tVal, true}, {"slice[1:2]", "{{slice .SI 1 2}}", "[4]", tVal, true}, {"slice[-1:]", "{{slice .SI -1}}", "", tVal, false}, {"slice[1:-2]", "{{slice .SI 1 -2}}", "", tVal, false}, {"slice[1:2:-1]", "{{slice .SI 1 2 -1}}", "", tVal, false}, {"slice[2:1]", "{{slice .SI 2 1}}", "", tVal, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
src/text/template/exec_test.go
// Slicing. {"slice[:]", "{{slice .SI}}", "[3 4 5]", tVal, true}, {"slice[1:]", "{{slice .SI 1}}", "[4 5]", tVal, true}, {"slice[1:2]", "{{slice .SI 1 2}}", "[4]", tVal, true}, {"slice[-1:]", "{{slice .SI -1}}", "", tVal, false}, {"slice[1:-2]", "{{slice .SI 1 -2}}", "", tVal, false}, {"slice[1:2:-1]", "{{slice .SI 1 2 -1}}", "", tVal, false}, {"slice[2:1]", "{{slice .SI 2 1}}", "", tVal, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
} // fields is a pointer to a slice of *Field. // This saves space in Types that do not have fields or methods // compared to a simple slice of *Field. type fields struct { s *[]*Field } // Slice returns the entries in f as a slice. // Changes to the slice entries will be reflected in f. func (f *fields) Slice() []*Field { if f.s == nil { return nil } return *f.s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller_test.go
assert.Len(t, sliceList.Items, 1, "Expected 1 endpoint slices") slice := sliceList.Items[0] assert.Regexp(t, "^"+serviceName, slice.Name) assert.Equal(t, serviceName, slice.Labels[discovery.LabelServiceName]) assert.EqualValues(t, []discovery.EndpointPort{}, slice.Ports) assert.EqualValues(t, []discovery.Endpoint{}, slice.Endpoints) assert.NotEmpty(t, slice.Annotations["endpoints.kubernetes.io/last-change-trigger-time"]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0) -
src/reflect/type.go
slice := (*sliceType)(unsafe.Pointer(tt)) if slice.Elem == typ { ti, _ := lookupCache.LoadOrStore(ckey, toRType(tt)) return ti.(Type) } } // Make a slice type. var islice any = ([]unsafe.Pointer)(nil) prototype := *(**sliceType)(unsafe.Pointer(&islice)) slice := *prototype slice.TFlag = 0 slice.Str = resolveReflectName(newName(s, "", false, false))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 85.5K bytes - Viewed (0) -
src/fmt/fmt_test.go
} func TestSlicePrinter(t *testing.T) { slice := []int{} s := Sprint(slice) if s != "[]" { t.Errorf("empty slice printed as %q not %q", s, "[]") } slice = []int{1, 2, 3} s = Sprint(slice) if s != "[1 2 3]" { t.Errorf("slice: got %q expected %q", s, "[1 2 3]") } s = Sprint(&slice) if s != "&[1 2 3]" { t.Errorf("&slice: got %q expected %q", s, "&[1 2 3]") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go
} RtlInitUnicodeString(&u, s16) return &u, nil } // Slice returns a uint16 slice that aliases the data in the NTUnicodeString. func (s *NTUnicodeString) Slice() []uint16 { slice := unsafe.Slice(s.Buffer, s.MaximumLength) return slice[:s.Length] } func (s *NTUnicodeString) String() string { return UTF16ToString(s.Slice()) } // NewNTString returns a new NTString structure for use with native
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 82.8K bytes - Viewed (0) -
src/encoding/json/decode_test.go
err: &UnmarshalTypeError{Value: "object", Type: reflect.TypeFor[map[unmarshaler]string](), Offset: 1}, }, // related to issue 13783. // Go 1.7 changed marshaling a slice of typed byte to use the methods on the byte type, // similar to marshaling a slice of typed int. // These tests check that, assuming the byte type also has valid decoding methods, // either the old base64 string encoding or the new per-element encoding can be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
} } // This function rewrites the original op into a series of slice and concat op // to produce the same result. It first slices the first `$index` rows. Then // expands the dimension of the `$item`, followed by another slice of the // remaining rows starting from `$index` + 1. Lastly it concatenates the // three parts together.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0) -
src/crypto/tls/handshake_messages.go
x[5] = uint8(certificateOctets >> 8) x[6] = uint8(certificateOctets) y := x[7:] for _, slice := range m.certificates { y[0] = uint8(len(slice) >> 16) y[1] = uint8(len(slice) >> 8) y[2] = uint8(len(slice)) copy(y[3:], slice) y = y[3+len(slice):] } return x, nil } func (m *certificateMsg) unmarshal(data []byte) bool { if len(data) < 7 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0)