You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sonic/util/uuid.go

16 lines
215 B
Go

2 years ago
package util
import (
"encoding/hex"
uuid2 "github.com/google/uuid"
)
func GenUUIDWithOutDash() string {
uuid := uuid2.New()
var buf [32]byte
dst := buf[:]
hex.Encode(dst, uuid[:])
return string(buf[:])
}