mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
- upgrade to golangci-lint 2.6.1 - updates for gosec - updates for govet - updates for perfsprint - updates modernize Leaves out modernize:omitempty due to conflicts with tests
13 lines
251 B
Go
13 lines
251 B
Go
//go:build freebsd || darwin || openbsd
|
|
|
|
package tempfile
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// CreateAutoDelete creates a temporary file that does not need to be explicitly removed on close.
|
|
func CreateAutoDelete() (*os.File, error) {
|
|
return createUnixFallback()
|
|
}
|