Documentation ¶
Overview ¶
package tempfile provides a way to create temporary files preserving extension and setting permissions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opts ¶
type Opts func(*request)
func KeepingExtension ¶
func KeepingExtension() Opts
KeepingExtension ensures the extension of the filename is preserved when creating the temporary file. It has not affect if `WithName` is not also used.
func WithDir ¶
WithDir sets the subdirectory of the temporary file within the system temp directory.
Click to show internal directories.
Click to hide internal directories.