package tempfile

import "cmd/pprof/internal/tempfile"

Package tempfile provides tools to create and delete temporary files

Index

Functions

func Cleanup

func Cleanup()

Cleanup removes any temporary files selected for deferred cleaning.

func DeferDelete

func DeferDelete(path string)

DeferDelete marks a file 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.

Source Files

tempfile.go

Version
v1.6.1
Published
Apr 12, 2016
Platform
linux/amd64
Imports
4 packages
Last checked
1 minute ago

Tools for package owners.