Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,317 for fmtE (0.05 sec)

  1. src/strconv/ftoa.go

    		mant |= uint64(1) << flt.mantbits
    	}
    	exp += flt.bias
    
    	// Pick off easy binary, hex formats.
    	if fmt == 'b' {
    		return fmtB(dst, neg, mant, exp, flt)
    	}
    	if fmt == 'x' || fmt == 'X' {
    		return fmtX(dst, prec, fmt, neg, mant, exp, flt)
    	}
    
    	if !optimize {
    		return bigFtoa(dst, prec, fmt, neg, mant, exp, flt)
    	}
    
    	var digs decimalSlice
    	ok := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. src/fmt/format.go

    		}
    	}
    	return b
    }
    
    // fmtS formats a string.
    func (f *fmt) fmtS(s string) {
    	s = f.truncateString(s)
    	f.padString(s)
    }
    
    // fmtBs formats the byte slice b as if it was formatted as string with fmtS.
    func (f *fmt) fmtBs(b []byte) {
    	b = f.truncate(b)
    	f.pad(b)
    }
    
    // fmtSbx formats a string or byte slice as a hexadecimal encoding of its bytes.
    func (f *fmt) fmtSbx(s string, b []byte, digits string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. src/fmt/print.go

    	case 'v':
    		if p.fmt.sharpV {
    			p.fmt.fmtQ(v)
    		} else {
    			p.fmt.fmtS(v)
    		}
    	case 's':
    		p.fmt.fmtS(v)
    	case 'x':
    		p.fmt.fmtSx(v, ldigits)
    	case 'X':
    		p.fmt.fmtSx(v, udigits)
    	case 'q':
    		p.fmt.fmtQ(v)
    	default:
    		p.badVerb(verb)
    	}
    }
    
    func (p *pp) fmtBytes(v []byte, verb rune, typeString string) {
    	switch verb {
    	case 'v', 'd':
    		if p.fmt.sharpV {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  4. src/slices/example_test.go

    	grow := slices.Grow(numbers, 2)
    	fmt.Println(cap(numbers))
    	fmt.Println(grow)
    	fmt.Println(len(grow))
    	fmt.Println(cap(grow))
    	// Output:
    	// 4
    	// [0 42 -10 8]
    	// 4
    	// 8
    }
    
    func ExampleClip() {
    	a := [...]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
    	s := a[:4:10]
    	clip := slices.Clip(s)
    	fmt.Println(cap(s))
    	fmt.Println(clip)
    	fmt.Println(len(clip))
    	fmt.Println(cap(clip))
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/out.go

    			fmt.Fprint(fgo2, "\tif e != 0 {\n")
    			fmt.Fprint(fgo2, "\t\treturn ")
    			if !void {
    				fmt.Fprint(fgo2, "r, ")
    			}
    			fmt.Fprint(fgo2, "e\n")
    			fmt.Fprint(fgo2, "\t}\n")
    			fmt.Fprint(fgo2, "\treturn ")
    			if !void {
    				fmt.Fprint(fgo2, "r, ")
    			}
    			fmt.Fprint(fgo2, "nil\n")
    		} else if !void {
    			fmt.Fprint(fgo2, "\treturn r\n")
    		}
    
    		fmt.Fprint(fgo2, "}\n")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/loong64/asm_test.go

    	genSize2 := (1 << 21) + 16
    
    	fmt.Fprintln(buf, "TEXT f(SB),0,$0-0")
    	fmt.Fprintln(buf, "BEQ R5, R6, label18")
    	fmt.Fprintln(buf, "BNE R5, R6, label18")
    	fmt.Fprintln(buf, "BGE R5, R6, label18")
    
    	fmt.Fprintln(buf, "BGEU R5, R6, label18")
    	fmt.Fprintln(buf, "BLTU R5, R6, label18")
    
    	fmt.Fprintln(buf, "BLEZ R5, label18")
    	fmt.Fprintln(buf, "BGEZ R5, label18")
    	fmt.Fprintln(buf, "BLTZ R5, label18")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:39:37 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/time/example_test.go

    	// The package also accepts the incorrect but common prefix u for micro.
    	micro2, _ := time.ParseDuration("1us")
    
    	fmt.Println(hours)
    	fmt.Println(complex)
    	fmt.Printf("There are %.0f seconds in %v.\n", complex.Seconds(), complex)
    	fmt.Printf("There are %d nanoseconds in %v.\n", micro.Nanoseconds(), micro)
    	fmt.Printf("There are %6.2e seconds in %v.\n", micro2.Seconds(), micro2)
    	// Output:
    	// 10h0m0s
    	// 1h10m10s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  8. src/cmd/dist/buildruntime.go

    	writeHeader(&buf)
    	fmt.Fprintf(&buf, "package buildcfg\n")
    	fmt.Fprintln(&buf)
    	fmt.Fprintf(&buf, "import \"runtime\"\n")
    	fmt.Fprintln(&buf)
    	fmt.Fprintf(&buf, "const defaultGO386 = `%s`\n", go386)
    	fmt.Fprintf(&buf, "const defaultGOAMD64 = `%s`\n", goamd64)
    	fmt.Fprintf(&buf, "const defaultGOARM = `%s`\n", goarm)
    	fmt.Fprintf(&buf, "const defaultGOARM64 = `%s`\n", goarm64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 01:33:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/net/http/cgi/cgi_main.go

    		panic(err)
    	}
    
    	params := req.Form
    	if params.Get("loc") != "" {
    		fmt.Printf("Location: %s\r\n\r\n", params.Get("loc"))
    		return
    	}
    
    	fmt.Printf("Content-Type: text/html\r\n")
    	fmt.Printf("X-CGI-Pid: %d\r\n", os.Getpid())
    	fmt.Printf("X-Test-Header: X-Test-Value\r\n")
    	fmt.Printf("\r\n")
    
    	if params.Get("writestderr") != "" {
    		fmt.Fprintf(os.Stderr, "Hello, stderr!\n")
    	}
    
    	if params.Get("bigresponse") != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. tools/istio-iptables/pkg/config/config.go

    	var b strings.Builder
    	b.WriteString(fmt.Sprintf("PROXY_PORT=%s\n", c.ProxyPort))
    	b.WriteString(fmt.Sprintf("PROXY_INBOUND_CAPTURE_PORT=%s\n", c.InboundCapturePort))
    	b.WriteString(fmt.Sprintf("PROXY_TUNNEL_PORT=%s\n", c.InboundTunnelPort))
    	b.WriteString(fmt.Sprintf("PROXY_UID=%s\n", c.ProxyUID))
    	b.WriteString(fmt.Sprintf("PROXY_GID=%s\n", c.ProxyGID))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top