tempfile

package
Version: v0.0.0-...-e410d2a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL