MCPcopy Create free account
hub / github.com/google/go-cloud / newTempDir

Function newTempDir

blob/example_test.go:601–607  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

599}
600
601func newTempDir() (string, func()) {
602 dir, err := os.MkdirTemp("", "go-cloud-blob-example")
603 if err != nil {
604 panic(err)
605 }
606 return dir, func() { os.RemoveAll(dir) }
607}

Callers 4

ExampleFunction · 0.85
ExampleBucket_ListFunction · 0.85
ExampleBucket_ListPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected