Skip to content

Instantly share code, notes, and snippets.

@Harsimran1
Created February 21, 2021 12:33
Show Gist options
  • Save Harsimran1/cc45793074d1bcb22077cc1610b8d003 to your computer and use it in GitHub Desktop.
Save Harsimran1/cc45793074d1bcb22077cc1610b8d003 to your computer and use it in GitHub Desktop.
package sendgrid
// Remove the interface and change the concrete type to public
type SendGrid struct {
/* impl */
}
// Change the NewSendGrid to return pointer to SendGrid instead.
func NewSendGrid(host string) *SendGrid {
return &sendgrid{host}
}
func (s *sendgrid) SendValidationEmail(email string) error {
/* impl */
}
func (s *sendgrid) SendPasswordChangeEmail(email string) error {
/* impl */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment