- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,682 for vfprintf (0.14 sec)
-
src/cmd/covdata/tool_test.go
if !*preserveTmp { defer os.RemoveAll(topTmpdir) } else { fmt.Fprintf(os.Stderr, "debug: preserving tmpdir %s\n", topTmpdir) } os.Setenv("CMDCOVDATA_TEST_RUN_MAIN", "true") os.Exit(m.Run()) } var tdmu sync.Mutex var tdcount int func tempDir(t *testing.T) string { tdmu.Lock() dir := filepath.Join(testTempDir, fmt.Sprintf("%03d", tdcount)) tdcount++ if err := os.Mkdir(dir, 0777); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 24.5K bytes - Viewed (0) -
samples/extauthz/cmd/extauthz/main.go
body, err := io.ReadAll(request.Body) if err != nil { log.Printf("[HTTP] read body failed: %v", err) } l := fmt.Sprintf("%s %s%s, headers: %v, body: [%s]\n", request.Method, request.Host, request.URL, request.Header, returnIfNotTooLong(string(body))) if allowedValue == request.Header.Get(checkHeader) { log.Printf("[HTTP][allowed]: %s", l) response.Header().Set(resultHeader, resultAllowed)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 15 18:23:48 UTC 2024 - 10.4K bytes - Viewed (0) -
src/mime/multipart/formdata_test.go
for i := 0; i < count; i++ { w, _ := fw.CreateFormField(fmt.Sprintf("field%v", i)) fmt.Fprintf(w, "value %v", i) } }, }, { name: "files", form: func(fw *Writer, count int) { for i := 0; i < count; i++ { w, _ := fw.CreateFormFile(fmt.Sprintf("field%v", i), fmt.Sprintf("file%v", i)) fmt.Fprintf(w, "value %v", i) } }, }} { b.Run(test.name, func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 05 18:31:56 UTC 2024 - 14K bytes - Viewed (0) -
istioctl/pkg/writer/compare/route.go
if err != nil { loc, _ = time.LoadLocation("UTC") } lastUpdatedStr = fmt.Sprintf(" (RDS last loaded at %s)", lastUpdated.In(loc).Format(time.RFC1123)) } if text != "" { fmt.Fprintf(c.w, "Routes Don't Match%s\n", lastUpdatedStr) fmt.Fprintln(c.w, text) } else { fmt.Fprintf(c.w, "Routes Match%s\n", lastUpdatedStr) } return nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 12 10:02:09 UTC 2024 - 2.3K bytes - Viewed (0) -
src/testing/example.go
if eg.Unordered { if sortLines(got) != sortLines(want) && recovered == nil { fail = fmt.Sprintf("got:\n%s\nwant (unordered):\n%s\n", stdout, eg.Output) } } else { if got != want && recovered == nil { fail = fmt.Sprintf("got:\n%s\nwant:\n%s\n", got, want) } } if fail != "" || !finished || recovered != nil { fmt.Printf("%s--- FAIL: %s (%s)\n%s", chatty.prefix(), eg.Name, dstr, fail) passed = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go
var params strings.Builder if len(re.Params) == 0 { fmt.Fprintf(¶ms, "%*sParams: nil", indent+2, "") } else { fmt.Fprintf(¶ms, "%*sParams:", indent+2, "") for i, p := range re.Params { params.WriteByte('\n') params.WriteString(p.goString(indent+4, fmt.Sprintf("%d: ", i))) } } var requirements strings.Builder fmt.Fprintf(&requirements, "%*sRequirements:", indent+2, "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 105.8K bytes - Viewed (0) -
src/cmd/fix/main.go
func usage() { fmt.Fprintf(os.Stderr, "usage: go tool fix [-diff] [-r fixname,...] [-force fixname,...] [path ...]\n") flag.PrintDefaults() fmt.Fprintf(os.Stderr, "\nAvailable rewrites are:\n") sort.Sort(byName(fixes)) for _, f := range fixes { if f.disabled { fmt.Fprintf(os.Stderr, "\n%s (disabled)\n", f.name) } else { fmt.Fprintf(os.Stderr, "\n%s\n", f.name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
src/internal/coverage/cfile/emit.go
capturedOsArgs = captureOsArgs() if s.debug { fmt.Fprintf(os.Stderr, "=+= GOCOVERDIR is %s\n", os.Getenv("GOCOVERDIR")) fmt.Fprintf(os.Stderr, "=+= contents of covmetalist:\n") for k, b := range ml { fmt.Fprintf(os.Stderr, "=+= slot: %d path: %s ", k, b.PkgPath) if b.PkgID != -1 { fmt.Fprintf(os.Stderr, " hcid: %d", b.PkgID) } fmt.Fprintf(os.Stderr, "\n") } pm := rtcov.Meta.PkgMap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 18.9K bytes - Viewed (0) -
docs/auditlog/auditlog-echo.go
body, err := io.ReadAll(r.Body) defer r.Body.Close() if err != nil { log.Printf("Error reading request body: %v", err) w.WriteHeader(http.StatusBadRequest) return } log.Printf(">>> %s %s\n", r.Method, r.URL.Path) var out bytes.Buffer json.Indent(&out, body, "", " ") log.Printf("%s\n", out.String()) w.WriteHeader(http.StatusOK) } func main() { flag.Parse()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 21:31:13 UTC 2024 - 1.5K bytes - Viewed (0) -
src/testing/testing.go
// the test name.) p.lastName = testName fmt.Fprintf(p.w, p.prefix()+format, args...) } // Printf prints a message, generated by the named test, that does not // necessarily mention that tests's name itself. func (p *chattyPrinter) Printf(testName, format string, args ...any) { p.lastNameMu.Lock() defer p.lastNameMu.Unlock() if p.lastName == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)