Documentation ¶
Overview ¶
Package tmp provides temporary files and directories.
Usage of this package requires eng approval - ask before using.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirOption ¶
type DirOption func(*dirOptions)
DirOption is an option for NewDir.
func DirWithBasePath ¶
DirWithBasePath returns a new DirOption that sets the base path to create the temporary directory in.
The default is to use os.TempDir().
type File ¶
File is a temporary file or directory.
It must be closed when done.
func NewDir ¶
NewDir returns a new temporary directory.
It must be closed when done. This deletes this directory and all its contents. This directory will be automatically closed on context cancellation.
Usage of this function requires eng approval - ask before using.
Click to show internal directories.
Click to hide internal directories.