whatismyip/internal/validator/uuid/uuid.go

11 lines
128 B
Go

package uuid
import (
"github.com/google/uuid"
)
func IsValid(u string) bool {
_, err := uuid.Parse(u)
return err == nil
}