From 620fb2f89b5acd70af4ed075b4797f81a3f1d109 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 3 Sep 2023 22:08:12 +0530 Subject: validating email addresses --- errors/errors.go | 1 + 1 file changed, 1 insertion(+) (limited to 'errors/errors.go') diff --git a/errors/errors.go b/errors/errors.go index 6716fdc..77d4d8c 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -30,6 +30,7 @@ var ( ErrInvalidID = errors.New("Invalid ID") ErrEmptyContactName = errors.New("Contact Name Cannot Be Empty") ErrInvalidGSTIN = errors.New("Invalid GSTIN") + ErrInvalidEmail = errors.New("Invalid E-Mail Address") ErrEmptyBrandName = errors.New("Brand Name Cannot Be Empty") ErrInvalidUnitPrice = errors.New("Invalid Unit Price") ErrInvalidGSTPercentage = errors.New("Invalid GST Percentage") -- cgit v1.2.3