- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeDiskCache (0.18 sec)
-
src/cmd/go/internal/modfetch/cache_test.go
) func TestWriteDiskCache(t *testing.T) { ctx := context.Background() tmpdir, err := os.MkdirTemp("", "go-writeCache-test-") if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpdir) err = writeDiskCache(ctx, filepath.Join(tmpdir, "file"), []byte("data")) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 19:33:59 UTC 2023 - 536 bytes - Viewed (0) -
src/cmd/go/internal/modfetch/cache.go
if err != nil { return err } return writeDiskCache(ctx, file, js) } // writeDiskGoMod writes a go.mod cache entry. // The file name must have been returned by a previous call to readDiskGoMod. func writeDiskGoMod(ctx context.Context, file string, text []byte) error { return writeDiskCache(ctx, file, text) } // writeDiskCache is the generic "write to a cache file" implementation.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 24.7K bytes - Viewed (0)