Bfontaine Vanish Save

:sparkles: Temporary files and directories made easy

Project README

Vanish

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

GoDoc Build Status

Install

go get github.com/bfontaine/vanish/v2

Usage

Vanish works with functions:

package main

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

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
})
Open Source Agenda is not affiliated with "Bfontaine Vanish" Project. README Source: bfontaine/vanish
Stars
27
Open Issues
0
Last Commit
1 year ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating