tempdir

package
v0.8.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EnvVar = "BATON_TMPDIR"

EnvVar is the environment variable that overrides the temp directory.

Variables

This section is empty.

Functions

func Resolve

func Resolve(dir string) string

Resolve returns the best temporary directory to use. Priority order:

  1. The provided dir argument (from --c1z-temp-dir flag)
  2. BATON_TMPDIR environment variable
  3. os.TempDir()

Types

This section is empty.

Jump to

Keyboard shortcuts

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