naise_pos/util/validate.go

9 lines
127 B
Go
Raw Permalink Normal View History

2023-03-22 12:06:09 +07:00
package util
import "github.com/google/uuid"
func IsValidUUID(u string) bool {
_, err := uuid.Parse(u)
return err == nil
}