- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 3,760 for sfprintf (0.16 sec)
-
src/regexp/testdata/testregex.c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 51.3K bytes - Viewed (0) -
src/fmt/example_test.go
// Print, Println, and Printf lay out their arguments differently. In this example // we can compare their behaviors. Println always adds blanks between the items it // prints, while Print adds blanks only between non-string arguments and Printf // does exactly what it is told. // Sprint, Sprintln, Sprintf, Fprint, Fprintln, and Fprintf behave the same as // their corresponding Print, Println, and Printf functions shown here. func Example_printers() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 21:03:10 UTC 2019 - 11.8K bytes - Viewed (0) -
test/rotate.go
func gentest(b *bufio.Writer, bits uint, unsigned, inverted bool) { fmt.Fprintf(b, "func init() {\n") defer fmt.Fprintf(b, "}\n") n := 0 // Generate tests for left/right and right/left. for l := uint(0); l <= bits; l++ { for r := uint(0); r <= bits; r++ { for o, op := range cop { typ := fmt.Sprintf("int%d", bits) v := fmt.Sprintf("i%d", bits) if unsigned { typ = "u" + typ v = "u" + v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 3.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
// example, fmt.Printf forwards to fmt.Fprintf. We avoid relying on the // driver applying analyzers to standard packages because "go vet" does // not do so with gccgo, and nor do some other build systems. var isPrint = stringSet{ "fmt.Appendf": true, "fmt.Append": true, "fmt.Appendln": true, "fmt.Errorf": true, "fmt.Fprint": true, "fmt.Fprintf": true, "fmt.Fprintln": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/os/exec/read3.go
} if !fdtest.Exists(fd) { continue } fmt.Printf("leaked parent file. fdtest.Exists(%d) got true want false\n", fd) fdfile := fmt.Sprintf("/proc/self/fd/%d", fd) link, err := os.Readlink(fdfile) fmt.Printf("readlink(%q) = %q, %v\n", fdfile, link, err) var args []string switch runtime.GOOS { case "plan9": args = []string{fmt.Sprintf("/proc/%d/fd", os.Getpid())} case "aix", "solaris", "illumos":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 26 14:49:07 UTC 2022 - 2.2K bytes - Viewed (0) -
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) -
internal/logger/console.go
if msg == "" { fmt.Fprintln(Output, args...) } else { fmt.Fprintf(Output, msg, args...) } } type errorMsg struct{} var errorMessage errorMsg func (i errorMsg) json(msg string, args ...interface{}) { var message string if msg != "" { message = fmt.Sprintf(msg, args...) } else { message = fmt.Sprint(args...) } logJSON, err := json.Marshal(&log.Entry{ Level: ErrorKind,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/arithConstGen.go
case "int16": ans = int64(int16(ans)) case "int8": ans = int64(int8(ans)) } return fmt.Sprintf("%d", ans) } func main() { w := new(bytes.Buffer) fmt.Fprintf(w, "// Code generated by gen/arithConstGen.go. DO NOT EDIT.\n\n") fmt.Fprintf(w, "package main;\n") fmt.Fprintf(w, "import \"testing\"\n") fncCnst1 := template.Must(template.New("fnc").Parse( `//go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 8.3K bytes - Viewed (0) -
src/cmd/cgo/out.go
fmt.Fprintf(fgcc, "(void*)") } } if n.Kind == "macro" { fmt.Fprintf(fgcc, "%s;\n", n.C) } else { fmt.Fprintf(fgcc, "%s(", n.C) for i := range n.FuncType.Params { if i > 0 { fmt.Fprintf(fgcc, ", ") } fmt.Fprintf(fgcc, "p%d", i) } fmt.Fprintf(fgcc, ");\n") } fmt.Fprintf(fgcc, "\t_cgo_tsan_release();\n") if t := n.FuncType.Result; t != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0) -
src/math/bits/make_examples.go
} else { fmt.Fprintf(w, "\tfmt.Printf(\"%%0%db\\n\", bits.%s(%d))\n", size, f, e.in) } fmt.Fprintf(w, "\t// Output:\n") fmt.Fprintf(w, "\t// %0*b\n", size, e.in) fmt.Fprintf(w, "\t// %0*b\n", size, e.out[i]) if e.name == "RotateLeft" && e.out2[i] != nil { fmt.Fprintf(w, "\t// %0*b\n", size, e.out2[i]) } default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 3K bytes - Viewed (0)