From 6e352e9b8b6a76056d424fbdac31d5176b0db5fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Cprajwalp=E2=80=9D?= <“prajwalp@mkcl.org”>
Date: Fri, 21 Apr 2023 12:31:31 +0530
Subject: [PATCH] Exported the parseTemplateFile method from email.go #15

---
 notificationmdl/email/email.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/notificationmdl/email/email.go b/notificationmdl/email/email.go
index 12c55e7..4e3dccc 100644
--- a/notificationmdl/email/email.go
+++ b/notificationmdl/email/email.go
@@ -78,7 +78,7 @@ func (email *Email) SetAlternateText(plainBody string) {
 // SendMail - send email service sends email as per the given html template and data
 //templateData can contain any type of values, including array, slice, map, struct and func
 func (email *Email) SendMail(templateFilePath string, templateData interface{}) error {
-	err := email.parseTemplateFile(templateFilePath, templateData)
+	err := email.ParseTemplateFile(templateFilePath, templateData)
 	if errormdl.CheckErr(err) != nil {
 		loggermdl.LogError(err)
 		return err
@@ -95,7 +95,7 @@ func (email *Email) SendMail(templateFilePath string, templateData interface{})
 	return nil
 }
 
-func (email *Email) parseTemplateFile(templateFilePath string, templateData interface{}) error {
+func (email *Email) ParseTemplateFile(templateFilePath string, templateData interface{}) error {
 	tmplt, err := template.ParseFiles(templateFilePath)
 	if errormdl.CheckErr(err) != nil {
 		loggermdl.LogError("error occured while calling parseTemplateFile: ", errormdl.CheckErr(err))
-- 
GitLab