This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
package fstorageutil
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func GenerateFilename(ext string) string {
|
|
if !strings.HasPrefix(ext, ".") {
|
|
ext = "." + ext
|
|
}
|
|
return uuid.New().String() + ext
|
|
}
|