Registry / utility / hashicorp-go-safetemp

hashicorp-go-safetemp

JSON →
library1.0.0gogounverified

Package safetemp provides safe temporary file and directory creation utilities for Go.

go get github.com/hashicorp/go-safetemp
INSTALL
IMPORT
SIG · HASHICORP-GO-SAFET
H
hashicorp-go-safetemp
utilitygov1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

safetemp
github.com/hashicorp/go-safetemp

Create a safe temporary directory.

package main import ( "fmt" "github.com/hashicorp/go-safetemp" ) func main() { dir, err := safetemp.MkdirTemp("", "example") if err != nil { fmt.Println(err) return } fmt.Println("Temp dir:", dir) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hashicorp-go-safetemp — go get hashicorp-go-safetemp · libregistry