- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 118 for nilslice (0.18 sec)
-
test/noinit.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 17:57:36 UTC 2023 - 6.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/symtab.go
moduledata.AddAddr(ctxt.Arch, sym) moduledata.AddUint(ctxt.Arch, len) moduledata.AddUint(ctxt.Arch, len) } sliceSym := func(sym loader.Sym) { slice(sym, uint64(ldr.SymSize(sym))) } nilSlice := func() { moduledata.AddUint(ctxt.Arch, 0) moduledata.AddUint(ctxt.Arch, 0) moduledata.AddUint(ctxt.Arch, 0) } // The pcHeader moduledata.AddAddr(ctxt.Arch, pcln.pcheader)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 16:29:40 UTC 2023 - 29.2K bytes - Viewed (0) -
src/encoding/json/decode_test.go
PMapP *map[string]*Small EmptyMap map[string]Small NilMap map[string]Small Slice []Small SliceP []*Small PSlice *[]Small PSliceP *[]*Small EmptySlice []Small NilSlice []Small StringSlice []string ByteSlice []byte Small Small PSmall *Small PPSmall **Small Interface any PInterface *any unexported int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:40:14 UTC 2024 - 67.6K bytes - Viewed (0) -
pkg/util/slice/slice.go
newSlice := make([]string, 0) for _, item := range slice { if item == s { continue } if modifier != nil && modifier(item) == s { continue } newSlice = append(newSlice, item) } if len(newSlice) == 0 { // Sanitize for unit tests so we don't need to distinguish empty array // and nil. newSlice = nil } return newSlice
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 21 19:03:53 UTC 2019 - 2.1K bytes - Viewed (0) -
test/named.go
isMap(Map{}) asSlice(slice) isSlice(slice) asSlice(make(Slice, 5)) isSlice(make(Slice, 5)) asSlice([]byte{1, 2, 3}) asSlice([]byte{1, 2, 3}[0:2]) asSlice(slice[0:4]) isSlice(slice[0:4]) asSlice(slice[3:8]) isSlice(slice[3:8]) asSlice(nil) asSlice(Slice(nil)) isSlice(Slice(nil)) slice = nil asSlice(Slice{1, 2, 3}) isSlice(Slice{1, 2, 3}) asSlice(Slice{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 4.6K bytes - Viewed (0) -
src/runtime/iface_test.go
zero64I T64 = 0 one64 uint64 = 1 thousand64 uint64 = 1000 zerostr string = "" zerostrI Tstr = "" nzstr string = "abc" zeroslice []byte = nil zerosliceI Tslice = nil nzslice []byte = []byte("abc") zerobig [512]byte nzbig [512]byte = [512]byte{511: 1} ) func BenchmarkConvT2Ezero(b *testing.B) { b.Run("zero", func(b *testing.B) { b.Run("16", func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 7.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
// copy([]byte, string) if n.X.Type().IsSlice() && n.Y.Type().IsString() { if types.Identical(n.X.Type().Elem(), types.ByteType) { return n } base.Errorf("arguments to copy have different element types: %L and string", n.X.Type()) n.SetType(nil) return n } if !n.X.Type().IsSlice() || !n.Y.Type().IsSlice() { if !n.X.Type().IsSlice() && !n.Y.Type().IsSlice() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
} n.SetType(t) n.SetOp(ir.OSLICESTR) } else if t.IsPtr() && t.Elem().IsArray() { tp = t.Elem() n.SetType(types.NewSlice(tp.Elem())) types.CalcSize(n.Type()) if hasmax { n.SetOp(ir.OSLICE3ARR) } else { n.SetOp(ir.OSLICEARR) } } else if t.IsSlice() { n.SetType(t) } else { base.Errorf("cannot slice %v (type %v)", l, t) n.SetType(nil) return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
src/sort/sort_impl_120.go
// license that can be found in the LICENSE file. //go:build !go1.21 package sort func intsImpl(x []int) { Sort(IntSlice(x)) } func float64sImpl(x []float64) { Sort(Float64Slice(x)) } func stringsImpl(x []string) { Sort(StringSlice(x)) } func intsAreSortedImpl(x []int) bool { return IsSorted(IntSlice(x)) } func float64sAreSortedImpl(x []float64) bool { return IsSorted(Float64Slice(x)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 21 13:00:18 UTC 2023 - 602 bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/reconciler.go
sliceName = existingSlices[0].Name } newSlice := newEndpointSlice(endpoints, endpointPorts, addressType, sliceName) for desiredSet.Len() > 0 && len(newSlice.Endpoints) < int(r.maxEndpointsPerSubset) { endpoint, _ := desiredSet.PopAny() newSlice.Endpoints = append(newSlice.Endpoints, *endpoint) } if newSlice.Name != "" { slices.toUpdate = []*discovery.EndpointSlice{newSlice}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 13.1K bytes - Viewed (0)