Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for print_ (0.14 sec)

  1. src/fmt/fmt_test.go

    	desc  string
    	fn    func()
    }{
    	{0, `Sprintf("")`, func() { _ = Sprintf("") }},
    	{1, `Sprintf("xxx")`, func() { _ = Sprintf("xxx") }},
    	{0, `Sprintf("%x")`, func() { _ = Sprintf("%x", 7) }},
    	{1, `Sprintf("%x")`, func() { _ = Sprintf("%x", 1<<16) }},
    	{3, `Sprintf("%80000s")`, func() { _ = Sprintf("%80000s", "hello") }}, // large buffer (>64KB)
    	{1, `Sprintf("%s")`, func() { _ = Sprintf("%s", "hello") }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  2. src/html/template/exec_test.go

    	// Print etc.
    	{"print", `{{print "hello, print"}}`, "hello, print", tVal, true},
    	{"print 123", `{{print 1 2 3}}`, "1 2 3", tVal, true},
    	{"print nil", `{{print nil}}`, "&lt;nil&gt;", tVal, true},
    	{"println", `{{println 1 2 3}}`, "1 2 3\n", tVal, true},
    	{"printf int", `{{printf "%04x" 127}}`, "007f", tVal, true},
    	{"printf float", `{{printf "%g" 3.5}}`, "3.5", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  3. src/runtime/traceback.go

    	}
    	print("goroutine ", gp.goid)
    	if gp.m != nil && gp.m.throwing >= throwTypeRuntime && gp == gp.m.curg || level >= 2 {
    		print(" gp=", gp)
    		if gp.m != nil {
    			print(" m=", gp.m.id, " mp=", gp.m)
    		} else {
    			print(" m=nil")
    		}
    	}
    	print(" [", status)
    	if isScan {
    		print(" (scan)")
    	}
    	if waitfor >= 1 {
    		print(", ", waitfor, " minutes")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. src/testing/testing.go

    	} else {
    		if c.chatty != nil {
    			if c.bench {
    				// Benchmarks don't print === CONT, so we should skip the test
    				// printer and just print straight to stdout.
    				fmt.Print(c.decorate(s, depth+1))
    			} else {
    				c.chatty.Printf(c.name, "%s", c.decorate(s, depth+1))
    			}
    
    			return
    		}
    		c.output = append(c.output, c.decorate(s, depth+1)...)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  5. istioctl/pkg/describe/describe.go

    				fmt.Fprintf(writer, "%s%s\n",
    					printSpaces(initPrintNum+printLevel2), mismatch)
    			}
    		}
    
    		return
    	}
    
    	if facts == 0 {
    		// We printed nothing other than the name.  Print something.
    		if len(vs.Spec.Http) > 0 {
    			fmt.Fprintf(writer, "%s%d HTTP route(s)\n", printSpaces(initPrintNum+printLevel1), len(vs.Spec.Http))
    		}
    		if len(vs.Spec.Tcp) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  6. src/regexp/testdata/testregex.c

    				else
    					printf("\"");
    				break;
    			case '\a':
    				printf("\\a");
    				break;
    			case '\b':
    				printf("\\b");
    				break;
    			case 033:
    				printf("\\e");
    				break;
    			case '\f':
    				printf("\\f");
    				break;
    			case '\n':
    				printf("\\n");
    				break;
    			case '\r':
    				printf("\\r");
    				break;
    			case '\t':
    				printf("\\t");
    				break;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  7. src/go/printer/nodes.go

    		p.print(token.SWITCH)
    		p.controlClause(false, s.Init, s.Tag, nil)
    		p.block(s.Body, 0)
    
    	case *ast.TypeSwitchStmt:
    		p.print(token.SWITCH)
    		if s.Init != nil {
    			p.print(blank)
    			p.stmt(s.Init, false)
    			p.print(token.SEMICOLON)
    		}
    		p.print(blank)
    		p.stmt(s.Assign, false)
    		p.print(blank)
    		p.block(s.Body, 0)
    
    	case *ast.CommClause:
    		if s.Comm != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  8. docs/bucket/notifications/README.md

     // Create server connection
     natsConnection, _ := nats.Connect("nats://yourusername:yoursecret@localhost:4222")
     log.Println("Connected")
    
     // Subscribe to subject
     log.Printf("Subscribing to subject 'bucketevents'\n")
     natsConnection.Subscribe("bucketevents", func(msg *nats.Msg) {
    
      // Handle the message
      log.Printf("Received message '%s\n", string(msg.Data)+"'")
     })
    
     // Keep the connection alive
     runtime.Goexit()
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 84K bytes
    - Viewed (0)
  9. src/text/template/exec_test.go

    	// Print etc.
    	{"print", `{{print "hello, print"}}`, "hello, print", tVal, true},
    	{"print 123", `{{print 1 2 3}}`, "1 2 3", tVal, true},
    	{"print nil", `{{print nil}}`, "<nil>", tVal, true},
    	{"println", `{{println 1 2 3}}`, "1 2 3\n", tVal, true},
    	{"printf int", `{{printf "%04x" 127}}`, "007f", tVal, true},
    	{"printf float", `{{printf "%g" 3.5}}`, "3.5", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  10. src/cmd/dist/build.go

    		format = "set %s=%s\r\n"
    	}
    
    	xprintf(format, "GO111MODULE", "")
    	xprintf(format, "GOARCH", goarch)
    	xprintf(format, "GOBIN", gorootBin)
    	xprintf(format, "GODEBUG", os.Getenv("GODEBUG"))
    	xprintf(format, "GOENV", "off")
    	xprintf(format, "GOFLAGS", "")
    	xprintf(format, "GOHOSTARCH", gohostarch)
    	xprintf(format, "GOHOSTOS", gohostos)
    	xprintf(format, "GOOS", goos)
    	xprintf(format, "GOPROXY", os.Getenv("GOPROXY"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top