mirror of
https://github.com/navidrome/navidrome.git
synced 2024-08-30 22:36:02 +02:00
13 lines
197 B
Go
13 lines
197 B
Go
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)
|
|
}
|