From e559702a632ad3d4ebad0c2e6dacb05ec99f9351 Mon Sep 17 00:00:00 2001 From: Edder Silva Date: Thu, 9 Dec 2021 18:58:20 -0600 Subject: [PATCH] =?UTF-8?q?Se=20quito=20la=20impresi=C3=B3ndel=20html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acorn/coupon.go | 4 ++-- acorn/image.go | 2 +- main.go | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/acorn/coupon.go b/acorn/coupon.go index 5dc8741..25816bd 100644 --- a/acorn/coupon.go +++ b/acorn/coupon.go @@ -9,7 +9,7 @@ type coupon struct { Params *acorntypes.CouponParams } -// Generate a new coupon html element +// NewCoupon generate a new coupon html element func (h HTML) NewCoupon(params *acorntypes.CouponParams) string { p := &coupon{Params: params} var button string @@ -19,7 +19,7 @@ func (h HTML) NewCoupon(params *acorntypes.CouponParams) string { return p.getCoupon(button) } -// Generate a new promo html element +// NewPromo generate a new promo html element func (h HTML) NewPromo(items *acorntypes.PromoItems) string { sizes := acornstyles.GetSizes() colorBlack := acornstyles.GetColors().Black diff --git a/acorn/image.go b/acorn/image.go index 940bc84..9656be8 100644 --- a/acorn/image.go +++ b/acorn/image.go @@ -7,7 +7,7 @@ import ( "github.com/arskang/acornmail/acorntypes" ) -// Generate a new image html element +// NewImage generate a new image html element func (h HTML) NewImage(params *acorntypes.ImageParams) string { alt := "Image" widthColumn := acornstyles.GetWidthColumns() diff --git a/main.go b/main.go index 749d076..aab6646 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,6 @@ package acornmail import ( "bytes" - "fmt" "html/template" "github.com/arskang/acornmail/acorn" @@ -26,7 +25,5 @@ func MergeVariables(temp string, variables acorntypes.AcornVariables) (string, e return "", err } - fmt.Println(tpl.String()) - return tpl.String(), nil }