tempdir

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TempDir

type TempDir struct {
	// contains filtered or unexported fields
}

TempDir type is temporary directory class.

func New

func New(baseDir string) *TempDir

New function creates new TempDir instance.

func (*TempDir) CleanUp

func (t *TempDir) CleanUp() error

MakeDir method removes temporary directory.

func (*TempDir) FilePath

func (t *TempDir) FilePath(filename string) string

FilePath method makes path of file in temporary directory.

func (*TempDir) MakeDir

func (t *TempDir) MakeDir() error

MakeDir method makes temporary directory.

func (*TempDir) Path

func (t *TempDir) Path() string

Path method returns path of temporary directory.

func (*TempDir) String

func (t *TempDir) String() string

String is stringer method.

Jump to

Keyboard shortcuts

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