os

package
v0.69.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup() error

Cleanup removes the entire process-specific temp directory Note: On Windows, directory deletion may fail if files are still open

func CreateTemp

func CreateTemp(dir, pattern string) (*os.File, error)

CreateTemp creates a temporary file, using the process-specific directory when dir is empty

func MkdirTemp

func MkdirTemp(dir, pattern string) (string, error)

MkdirTemp creates a temporary directory, using the process-specific directory as base when dir is empty

func TempDir

func TempDir() string

TempDir returns the process-specific temp directory path

Types

This section is empty.

Jump to

Keyboard shortcuts

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