Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for printslice (0.15 sec)

  1. src/cmd/vendor/rsc.io/markdown/parse.go

    			fmt.Fprintf(buf, "\n%s%s:", prefix, t.Field(i).Name)
    			printslice(buf, v.Field(i), prefix)
    		}
    	}
    	fmt.Fprintf(buf, ")")
    }
    
    func printslice(buf *bytes.Buffer, v reflect.Value, prefix string) {
    	if v.Type().Elem().Kind() == reflect.Slice {
    		for i := 0; i < v.Len(); i++ {
    			fmt.Fprintf(buf, "\n%s#%d:", prefix, i)
    			printslice(buf, v.Index(i), prefix+"\t")
    		}
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func printhex(uint64)
    func printuint(uint64)
    func printcomplex(complex128)
    func printstring(string)
    func printpointer(any)
    func printuintptr(uintptr)
    func printiface(any)
    func printeface(any)
    func printslice(any)
    func printnl()
    func printsp()
    func printlock()
    func printunlock()
    
    func concatstring2(*[32]byte, string, string) string
    func concatstring3(*[32]byte, string, string, string) string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/builtin.go

    	{"printcomplex", funcTag, 27},
    	{"printstring", funcTag, 29},
    	{"printpointer", funcTag, 30},
    	{"printuintptr", funcTag, 31},
    	{"printiface", funcTag, 30},
    	{"printeface", funcTag, 30},
    	{"printslice", funcTag, 30},
    	{"printnl", funcTag, 9},
    	{"printsp", funcTag, 9},
    	{"printlock", funcTag, 9},
    	{"printunlock", funcTag, 9},
    	{"concatstring2", funcTag, 34},
    	{"concatstring3", funcTag, 35},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/builtin.go

    				break
    			}
    			fallthrough
    		case types.TCHAN, types.TMAP, types.TFUNC, types.TUNSAFEPTR:
    			on = typecheck.LookupRuntime("printpointer", n.Type())
    		case types.TSLICE:
    			on = typecheck.LookupRuntime("printslice", n.Type())
    		case types.TUINT, types.TUINT8, types.TUINT16, types.TUINT32, types.TUINT64, types.TUINTPTR:
    			if types.RuntimeSymName(n.Type().Sym()) == "hex" {
    				on = typecheck.LookupRuntime("printhex")
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  5. operator/pkg/util/reflect_test.go

    	for _, vv := range lv {
    		if reflect.DeepEqual(vv, v) {
    			return true
    		}
    	}
    	return false
    }
    
    func TestDeleteFromSlicePtr(t *testing.T) {
    	parentSlice := []int{42, 43, 44, 45}
    	var parentSliceI any = parentSlice
    	if err := DeleteFromSlicePtr(&parentSliceI, 1); err != nil {
    		t.Fatalf("got error: %s, want error: nil", err)
    	}
    	wantSlice := []int{42, 44, 45}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  6. src/sort/sort_test.go

    	}
    	Ints(data)
    	if !IntsAreSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    func TestReverseSortIntSlice(t *testing.T) {
    	data := ints
    	data1 := ints
    	a := IntSlice(data[0:])
    	Sort(a)
    	r := IntSlice(data1[0:])
    	Sort(Reverse(r))
    	for i := 0; i < len(data); i++ {
    		if a[i] != r[len(data)-1-i] {
    			t.Errorf("reverse sort didn't sort")
    		}
    		if i > len(data)/2 {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. src/sort/sort.go

    // Convenience types for common cases
    
    // IntSlice attaches the methods of Interface to []int, sorting in increasing order.
    type IntSlice []int
    
    func (x IntSlice) Len() int           { return len(x) }
    func (x IntSlice) Less(i, j int) bool { return x[i] < x[j] }
    func (x IntSlice) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    
    // Sort is a convenience method: x.Sort() calls Sort(x).
    func (x IntSlice) Sort() { Sort(x) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  8. pkg/apis/resource/structured/namedresources/validation/validation_test.go

    		},
    		"bool": {
    			selector: `attributes.bool["name"]`,
    		},
    		"int": {
    			selector: `attributes.int["name"] > 0`,
    		},
    		"intslice": {
    			selector: `attributes.intslice["name"].isSorted()`,
    		},
    		"string": {
    			selector: `attributes.string["name"] == "fish"`,
    		},
    		"stringslice": {
    			selector: `attributes.stringslice["name"].isSorted()`,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. src/net/smtp/smtp_test.go

    			return
    		}
    		defer conn.Close()
    
    		tc := textproto.NewConn(conn)
    		for i := 0; i < len(data) && data[i] != ""; i++ {
    			tc.PrintfLine("%s", data[i])
    			for len(data[i]) >= 4 && data[i][3] == '-' {
    				i++
    				tc.PrintfLine("%s", data[i])
    			}
    			if data[i] == "221 Goodbye" {
    				return
    			}
    			read := false
    			for !read || data[i] == "354 Go ahead" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. src/cmd/vet/testdata/print/print.go

    	fmt.Println("foo\n")  // ERROR "Println arg list ends with redundant newline"
    	fmt.Println("foo\\n") // not an error
    	fmt.Println(`foo\n`)  // not an error
    
    	intSlice := []int{3, 4}
    	fmt.Printf("%s", intSlice) // ERROR "Printf format %s has arg intSlice of wrong type \[\]int"
    	nonStringerArray := [1]unexportedStringer{{}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
Back to top