import (
"os"
- "strconv"
- "time"
)
-func tempsuffix() string {
- return strconv.FormatInt((time.Now().UnixNano()+int64(os.Getpid()))&0xFFFFFFFF, 16)
-}
-
func tempfile(dir, prefix string) (*os.File, error) {
tmp, err := os.CreateTemp(dir, prefix)
if err != nil {