Documentation
¶
Overview ¶
Package tmpdir manages temporary directories for a server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dir string
Dir is the temporary directory that Setup() created.
Functions ¶
func MkTemp ¶
MkTemp creates a unique filename in the temporary directory and returns a writable file descriptor. This function is safe for any arbitrary filename.
Subdirectories are not supported. The Setup() function must be called first.
func MkTempFile ¶
MkTempFile behaves like MkTemp, but returns the path to a file (which is created) instead of a file descriptor.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.