temporal

package
Version: v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fs billy.Filesystem, defaultDir string) billy.Filesystem

New creates a new filesystem wrapping up 'fs' the intercepts the calls to the TempFile method. The param defaultDir is used as default directory were the tempfiles are created.

Types

type Temporal

type Temporal struct {
	billy.Filesystem
	// contains filtered or unexported fields
}

Temporal is a helper that implements billy.TempFile over any filesystem.

func (*Temporal) TempFile

func (h *Temporal) TempFile(dir, prefix string) (billy.File, error)

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