- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for WithBuildXWriter (0.4 sec)
-
src/cmd/go/internal/cfg/cfg.go
GoPathError = "cannot set GOROOT as GOPATH" } return "" } GoPathError = fmt.Sprintf("%s is not set", env) return "" } // WithBuildXWriter returns a Context in which BuildX output is written // to given io.Writer. func WithBuildXWriter(ctx context.Context, xLog io.Writer) context.Context { return context.WithValue(ctx, buildXContextKey{}, xLog) } type buildXContextKey struct{}
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/go/internal/modfetch/codehost/git_test.go
cfg.GOMODCACHE = filepath.Join(dir, "modcache") cfg.ModCacheRW = true m.Run() return nil } func testContext(t testing.TB) context.Context { w := newTestWriter(t) return cfg.WithBuildXWriter(context.Background(), w) } // A testWriter is an io.Writer that writes to a test's log. // // The writer batches written data until the last byte of a write is a newline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 19:46:23 UTC 2023 - 18.9K bytes - Viewed (0)