You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
259 B
18 lines
259 B
6 months ago
|
package utils
|
||
|
|
||
|
import (
|
||
|
uuid "github.com/satori/go.uuid"
|
||
|
"github.com/taskcluster/slugid-go/slugid"
|
||
|
)
|
||
|
|
||
|
// Get22UUID ...
|
||
|
func Get22UUID() string {
|
||
|
return slugid.Nice()
|
||
|
}
|
||
|
|
||
|
// GetUUIDv4 ...
|
||
|
func GetUUIDv4() string {
|
||
|
uid := uuid.NewV4()
|
||
|
return uid.String()
|
||
|
}
|