tmpfs

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package tmpfs provides function to access the temporary filesystem.

The functions are simple wrapper for the os.*Temp functions. They return close function that guarantee that the files are properly closed and deleted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(dir string, prefix string) (name string, cl func(), err error)

Dir is a helper for os.MkdirTemp.

The returned close function deletes the directory.

func File

func File(dir string, pattern string) (f *os.File, cl func(), err error)

File is a helper for os.CreateTemp.

The returned close function closes and deletes the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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