vanish

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2015 License: MIT

README

Vanish

Vanish is a minimal Go library to use temporary files and directories.

GoDoc Build Status

Install

go get github.com/bfontaine/vanish/vanish

Usage

Vanish works with callbacks:

import "github.com/bfontaine/vanish/vanish"

vanish.File(func(name string) {
    // 'name' is a temporary file, use it here as you want, it’ll be deleted
    // at the end of the function
})

vanish.Dir(func(name string) {
    // here, 'name' is a directory
})

vanish.Env(func() {
    // we can modify the environment here, it’ll be restored at the end of the
    // function
})

Directories

Path Synopsis
Godeps
_workspace/src/github.com/stretchr/testify/assert
A set of comprehensive testing tools for use with the normal Go testing system.
A set of comprehensive testing tools for use with the normal Go testing system.
Package vanish provides a minimal Go library to use temporary files and directories.
Package vanish provides a minimal Go library to use temporary files and directories.

Jump to

Keyboard shortcuts

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