9 lines
127 B
Go
9 lines
127 B
Go
|
package util
|
||
|
|
||
|
import "github.com/google/uuid"
|
||
|
|
||
|
func IsValidUUID(u string) bool {
|
||
|
_, err := uuid.Parse(u)
|
||
|
return err == nil
|
||
|
}
|