package
0.0.0-20240817140251-aa2fb5bc486d
Repository: https://github.com/diamondburned/gotkit.git
Documentation: pkg.go.dev

# Functions

Consume consumes the given io.Reader and returns a temporary file that will be deleted when it is closed.
IsCorrupted returns true if the given error has occured during copying.
Mktemp creates a new temp file in a predefined temporary directory.
UseFile is a lower-level function that opens a file and calls fn with it.
UseFileWithPattern is the same as UseFile, but it also takes a temporary file pattern.
WriteFile writes b to the file in path atomically.

# Structs

TempFile is a temporary file.