10 lines
170 B
Go
10 lines
170 B
Go
|
package blk
|
||
|
|
||
|
import "regexp"
|
||
|
|
||
|
var blkUuidPattern = regexp.MustCompile("^[0-9a-zA-Z-]+$")
|
||
|
|
||
|
func IsValidUUID(uuid string) bool {
|
||
|
return blkUuidPattern.MatchString(uuid)
|
||
|
}
|