tmpfile

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Prefix, Suffix string
	Length         int
}

func NewGenerator

func NewGenerator(prefix, suffix string, length int) Generator

NewGenerator returns a new Generator

func (*Generator) GenerateFullPath

func (g *Generator) GenerateFullPath() string

GenerateFullPath generates a random temporary filename and appends it to the OS's temporary directory

func (*Generator) GenerateName

func (g *Generator) GenerateName() string

GenerateName generates a random temporary filename like agedit_geef0XYC30RGV

Jump to

Keyboard shortcuts

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