Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for printBool (0.21 sec)

  1. test/print.go

    	println(uint(7))            // printuint
    	println(uintptr(7))         // printuint
    	println(8.0)                // printfloat
    	println(complex(9.0, 10.0)) // printcomplex
    	println(true)               // printbool
    	println(false)              // printbool
    	println("hello")            // printstring
    	println("one", "two")       // printsp
    
    	// test goprintf
    	defer println((interface{})(nil))
    	defer println((interface {
    		f()
    	})(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  2. test/runtime.go

    // functions in its symbol table, but some functions
    // in runtime are hard-coded into the compiler.
    // Does not compile.
    
    package main
    
    import "runtime"
    
    func main() {
    	runtime.printbool(true)	// ERROR "unexported|undefined"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:56:19 UTC 2020
    - 600 bytes
    - Viewed (0)
  3. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.goPanicSlice3AcapU", 1},
    	{"runtime.goPanicSlice3B", 1},
    	{"runtime.goPanicSlice3BU", 1},
    	{"runtime.goPanicSlice3C", 1},
    	{"runtime.goPanicSlice3CU", 1},
    	{"runtime.goPanicSliceConvert", 1},
    	{"runtime.printbool", 1},
    	{"runtime.printfloat", 1},
    	{"runtime.printint", 1},
    	{"runtime.printhex", 1},
    	{"runtime.printuint", 1},
    	{"runtime.printcomplex", 1},
    	{"runtime.printstring", 1},
    	{"runtime.printpointer", 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)
  4. src/runtime/print.go

    	gp.writebuf = gp.writebuf[:len(gp.writebuf)+n]
    }
    
    func printsp() {
    	printstring(" ")
    }
    
    func printnl() {
    	printstring("\n")
    }
    
    func printbool(v bool) {
    	if v {
    		printstring("true")
    	} else {
    		printstring("false")
    	}
    }
    
    func printfloat(v float64) {
    	switch {
    	case v != v:
    		printstring("NaN")
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    		"ID: " + printUint16(m.ID) + ", " +
    		"Response: " + printBool(m.Response) + ", " +
    		"OpCode: " + m.OpCode.GoString() + ", " +
    		"Authoritative: " + printBool(m.Authoritative) + ", " +
    		"Truncated: " + printBool(m.Truncated) + ", " +
    		"RecursionDesired: " + printBool(m.RecursionDesired) + ", " +
    		"RecursionAvailable: " + printBool(m.RecursionAvailable) + ", " +
    		"AuthenticData: " + printBool(m.AuthenticData) + ", " +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func goPanicSlice3B(x int, y int)
    func goPanicSlice3BU(x uint, y int)
    func goPanicSlice3C(x int, y int)
    func goPanicSlice3CU(x uint, y int)
    func goPanicSliceConvert(x int, y int)
    
    func printbool(bool)
    func printfloat(float64)
    func printint(int64)
    func printhex(uint64)
    func printuint(uint64)
    func printcomplex(complex128)
    func printstring(string)
    func printpointer(any)
    func printuintptr(uintptr)
    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

    	{"goPanicSlice3AcapU", funcTag, 18},
    	{"goPanicSlice3B", funcTag, 16},
    	{"goPanicSlice3BU", funcTag, 18},
    	{"goPanicSlice3C", funcTag, 16},
    	{"goPanicSlice3CU", funcTag, 18},
    	{"goPanicSliceConvert", funcTag, 16},
    	{"printbool", funcTag, 19},
    	{"printfloat", funcTag, 21},
    	{"printint", funcTag, 23},
    	{"printhex", funcTag, 25},
    	{"printuint", funcTag, 25},
    	{"printcomplex", funcTag, 27},
    	{"printstring", funcTag, 29},
    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

    			on = typecheck.LookupRuntime("printfloat")
    		case types.TCOMPLEX64, types.TCOMPLEX128:
    			on = typecheck.LookupRuntime("printcomplex")
    		case types.TBOOL:
    			on = typecheck.LookupRuntime("printbool")
    		case types.TSTRING:
    			cs := ""
    			if ir.IsConst(n, constant.String) {
    				cs = ir.StringVal(n)
    			}
    			switch cs {
    			case " ":
    				on = typecheck.LookupRuntime("printsp")
    			case "\n":
    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. pkg/printers/internalversion/printers.go

    			return nil, err
    		}
    		rows = append(rows, r...)
    	}
    	return rows, nil
    }
    
    func printBoolPtr(value *bool) string {
    	if value != nil {
    		return printBool(*value)
    	}
    
    	return "<unset>"
    }
    
    func printBool(value bool) string {
    	if value {
    		return "True"
    	}
    
    	return "False"
    }
    
    // SortableResourceNames - An array of sortable resource names
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskOriginCrossVersionSpec.groovy

                                }
                            }
                        }
                    }
                }
            """
    
            when:
            runBuild('printFoo')
    
            then:
            task(':printFoo').originPlugin.displayName == "MyPlugin"
        }
    
        private void runBuild(String task, Action<BuildLauncher> config = {}) {
            withConnection {
                    def launcher = newBuild()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top