package
0.0.0-20230419125825-190eb84d66ab
Repository: https://github.com/dino16m/golearn-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

InitializeMessage initializes the Message struct by creating sensible defaults for optional parameters that have zero values of nil.
NewConsoleMailer constructs an innstance of ConsoleMailer.
NewMailer construct the mailer object.

# Structs

ConsoleMailer is an implementation of the IMailer interface which writes mails to the console, it is suitable for debugging mails and for use in dev environments.
Mailer exported Mailer struct.
Message to create an instance of this struct please use InitializeMessage function use it as mails.InitializeMessage().

# Interfaces

IDialer is a low level implemntation detail of this package it describes an interface needed to send messages.
IMailer the mail sender.
SendableMessage interface is the interface accepted by mailer it contains details of the message.