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
It must be closed when done.
func NewFileWithData ¶
NewFileWithData returns a new temporary file with the given data.
It must be closed when done. This file will be deleted on interrupt signals.
Usage of this function requires eng approval - ask before using.
Click to show internal directories.
Click to hide internal directories.