util

package
v0.0.0-...-c982c26 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFileUniqueName

func OpenFileUniqueName(prefix string, flag int, perm os.FileMode) (file *os.File, err error)

OpenFileUniqueName creates a file with a unique (and randomly generated) filename with the given path and name prefix. It is opened with flag|os.O_CREATE|os.O_EXCL; os.O_WRONLY or os.RDWR should be specified for flag at minimum. It is the caller's responsibility to close (and maybe delete) the file when they have finished using it. TODO: Use a function from the standard library for doing this, if available

Types

This section is empty.

Jump to

Keyboard shortcuts

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