Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for printslice (0.14 sec)

  1. test/range4.go

    	for i := range yield4 {
    		defer save(i)
    	}
    	defer save(5)
    }
    
    func checkslice(name string, saved, want []int) {
    	if !eqslice(saved, want) {
    		print("wrong results ")
    		printslice(saved)
    		print(" want ")
    		printslice(want)
    		print("\n")
    		panic(name)
    	}
    }
    
    func testfunc7() {
    	saved = nil
    	func7()
    	want := []int{5, 4, 3, 2, 1, -1}
    	checkslice("testfunc7", saved, want)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. test/print.go

    package main
    
    func main() {
    	println((interface{})(nil)) // printeface
    	println((interface {        // printiface
    		f()
    	})(nil))
    	println((map[int]int)(nil)) // printpointer
    	println(([]int)(nil))       // printslice
    	println(int64(-7))          // printint
    	println(uint64(7))          // printuint
    	println(uint32(7))          // printuint
    	println(uint16(7))          // printuint
    	println(uint8(7))           // printuint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  3. src/runtime/print.go

    	printunlock()
    }
    
    var debuglock mutex
    
    // The compiler emits calls to printlock and printunlock around
    // the multiple calls that implement a single Go print or println
    // statement. Some of the print helpers (printslice, for example)
    // call print recursively. There is also the problem of a crash
    // happening during the print routines and needing to acquire
    // the print lock to print information about the crash.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.printuint", 1},
    	{"runtime.printcomplex", 1},
    	{"runtime.printstring", 1},
    	{"runtime.printpointer", 1},
    	{"runtime.printuintptr", 1},
    	{"runtime.printiface", 1},
    	{"runtime.printeface", 1},
    	{"runtime.printslice", 1},
    	{"runtime.printnl", 1},
    	{"runtime.printsp", 1},
    	{"runtime.printlock", 1},
    	{"runtime.printunlock", 1},
    	{"runtime.concatstring2", 1},
    	{"runtime.concatstring3", 1},
    	{"runtime.concatstring4", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/cgo/internal/testsanitizers/testdata/asan3_fail.go

    	// Access Go pointer out of bounds.
    	int c = a[5];        // BOOM
    	// We shouldn't get here; asan should stop us first.
    	printf("a[5]=%d\n", c);
    }
    */
    import "C"
    
    func main() {
    	cIntSlice := []C.int{200, 201, 203, 203, 204}
    	C.test(&cIntSlice[0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 486 bytes
    - Viewed (0)
  10. operator/pkg/util/reflect.go

    func DeleteFromSlicePtr(parentSlice any, index int) error {
    	scope.Debugf("DeleteFromSlicePtr index=%d, slice=\n%v", index, parentSlice)
    	pv := reflect.ValueOf(parentSlice)
    
    	if !IsSliceInterfacePtr(parentSlice) {
    		return fmt.Errorf("deleteFromSlicePtr parent type is %T, must be *[]interface{}", parentSlice)
    	}
    
    	pvv := pv.Elem()
    	if pvv.Kind() == reflect.Interface {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 8.6K bytes
    - Viewed (0)
Back to top