Created
February 21, 2021 12:33
-
-
Save Harsimran1/cc45793074d1bcb22077cc1610b8d003 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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