Versions in this module Expand all Collapse all v1 v1.42.3 Mar 19, 2026 Changes in this version + func WithValue(ctx context.Context, td *TempDir) context.Context + type TempDir struct + func FromContext(ctx context.Context) *TempDir + func FromPath(dir string) *TempDir + func Root(ctx context.Context, prefix string) (context.Context, *TempDir) + func (t *TempDir) Cleanup() error + func (t *TempDir) NewChild(name string) (string, func(), error) + func (t *TempDir) NewFile(pattern string) (*os.File, func(), error)