Move TempFileName to utils

This commit is contained in:
Deluan
2024-02-17 18:19:51 -05:00
committed by Deluan Quintão
parent 6eb13c9f79
commit fa72aaa462
4 changed files with 16 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
package utils
import (
"os"
"path/filepath"
"github.com/google/uuid"
)
func TempFileName(prefix, suffix string) string {
return filepath.Join(os.TempDir(), prefix+uuid.NewString()+suffix)
}