From 46083ff15e16b0b49132af9466bcab7c2ae71322 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 22:29:46 +0530 Subject: validating phone number and website --- errors/errors.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'errors/errors.go') diff --git a/errors/errors.go b/errors/errors.go index 77d4d8c..3f1efc5 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -31,6 +31,8 @@ var ( ErrEmptyContactName = errors.New("Contact Name Cannot Be Empty") ErrInvalidGSTIN = errors.New("Invalid GSTIN") ErrInvalidEmail = errors.New("Invalid E-Mail Address") + ErrInvalidPhone = errors.New("Invalid Phone Number") + ErrInvalidWebsite = errors.New("Invalid Website URL") ErrEmptyBrandName = errors.New("Brand Name Cannot Be Empty") ErrInvalidUnitPrice = errors.New("Invalid Unit Price") ErrInvalidGSTPercentage = errors.New("Invalid GST Percentage") -- cgit v1.2.3