- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 118 for Writer (0.07 sec)
-
src/cmd/cover/html.go
return 0 } return float64(covered) / float64(total) * 100 } // htmlGen generates an HTML coverage report with the provided filename, // source code, and tokens, and writes it to the given Writer. func htmlGen(w io.Writer, src []byte, boundaries []cover.Boundary) error { dst := bufio.NewWriter(w) for i := range src { for len(boundaries) > 0 && boundaries[0].Offset == i { b := boundaries[0] if b.Start {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 14:33:36 UTC 2022 - 6.8K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
// to given io.Writer. func WithBuildXWriter(ctx context.Context, xLog io.Writer) context.Context { return context.WithValue(ctx, buildXContextKey{}, xLog) } type buildXContextKey struct{} // BuildXWriter returns nil if BuildX is false, or // the writer to which BuildX output should be written otherwise. func BuildXWriter(ctx context.Context) (io.Writer, bool) { if !BuildX { return nil, false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/libgo2/libgo2.go
static void CRaiseSIGPIPE() { int fds[2]; if (pipe(fds) == -1) { perror("pipe"); exit(EXIT_FAILURE); } // Close the reader end close(fds[0]); // Write to the writer end to provoke a SIGPIPE if (write(fds[1], "some data", 9) != -1) { fprintf(stderr, "write to a closed pipe succeeded\n"); exit(EXIT_FAILURE); } close(fds[1]); } */ import "C" import ( "fmt" "os" "runtime" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/go/internal/script/state.go
// Logf writes output to the script's log without updating its stdout or stderr // buffers. (The output log functions as a kind of meta-stderr.) func (s *State) Logf(format string, args ...any) { fmt.Fprintf(&s.log, format, args...) } // flushLog writes the contents of the script's log to w and clears the log. func (s *State) flushLog(w io.Writer) error { _, err := w.Write(s.log.Bytes())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:02 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/bug/bug.go
` func printGoVersion(w io.Writer) { fmt.Fprintf(w, "### What version of Go are you using (`go version`)?\n\n") fmt.Fprintf(w, "<pre>\n") fmt.Fprintf(w, "$ go version\n") fmt.Fprintf(w, "go version %s %s/%s\n", runtime.Version(), runtime.GOOS, runtime.GOARCH) fmt.Fprintf(w, "</pre>\n") fmt.Fprintf(w, "\n") } func printEnvDetails(w io.Writer) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/go/internal/test/cover.go
base.Fatalf("%v", err) } coverMerge.f = f } // mergeCoverProfile merges file into the profile stored in testCoverProfile. // It prints any errors it encounters to ew. func mergeCoverProfile(ew io.Writer, file string) { if coverMerge.f == nil { return } coverMerge.Lock() defer coverMerge.Unlock() expect := fmt.Sprintf("mode: %s\n", cfg.BuildCoverMode) buf := make([]byte, len(expect))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 11:50:58 UTC 2022 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
var buf bytes.Buffer FDumpList(&buf, s, list) os.Stdout.Write(buf.Bytes()) } // FDumpList prints to w the message s followed by a debug dump of each node in the list. func FDumpList(w io.Writer, s string, list Nodes) { io.WriteString(w, s) dumpNodes(w, list, 1) io.WriteString(w, "\n") } // indent prints indentation to w. func indent(w io.Writer, depth int) { fmt.Fprint(w, "\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/svn.go
Short: fmt.Sprintf("%012d", log.Logentry.Revision), Time: t.UTC(), Version: rev, } return info, nil } func svnReadZip(ctx context.Context, dst io.Writer, workDir, rev, subdir, remote string) (err error) { // The subversion CLI doesn't provide a command to write the repository // directly to an archive, so we need to export it to the local filesystem // instead. Unfortunately, the local filesystem might apply arbitrary
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 02:47:12 UTC 2023 - 4.5K bytes - Viewed (0) -
src/cmd/doc/main.go
telemetry.Start() dirsInit() err := do(os.Stdout, flag.CommandLine, os.Args[1:]) if err != nil { log.Fatal(err) } } // do is the workhorse, broken out of main to make testing easier. func do(writer io.Writer, flagSet *flag.FlagSet, args []string) (err error) { flagSet.Usage = usage unexported = false matchCase = false flagSet.StringVar(&chdir, "C", "", "change to `dir` before running command")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/script.go
err = s.engine.Execute(st, scriptName, bufio.NewReader(bytes.NewReader(ar.Comment)), scriptLog) closeErr := st.CloseAndWait(scriptLog) logger.Printf("%s:", scriptName) io.WriteString(logger.Writer(), scriptLog.String()) io.WriteString(logger.Writer(), "\n") if err != nil { return nil, err } if closeErr != nil { return nil, err } sc, err := getScriptCtx(st) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 08 19:37:03 UTC 2022 - 9K bytes - Viewed (0)