tempfile

package standard library
go1.7.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package tempfile provides tools to create and delete temporary files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

Cleanup removes any temporary files or directories selected for deferred cleaning. Similar to defer semantics, the nodes are deleted in LIFO order.

func DeferDelete

func DeferDelete(path string)

DeferDelete marks a file or directory to be deleted by next call to Cleanup.

func New

func New(dir, prefix, suffix string) (*os.File, error)

New returns an unused filename for output files.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL