gosendgrid

package module
v0.0.0-...-d541837 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 5 Imported by: 0

README

gosend-grid

Go simple utility helper to send mail using Sendgrid Mail API.

Software Engineer

  • D A N R A

Technology Stack

Gosend-grid is developed using :

  • Go 1.13.1 (darwin/amd64)

And I recommend you to use Go 1.11 and later to continue to learn or help me to develop these bunch of code, guys.

Installation

To work with Gosend-grid, you can start by using the command :

  • Using $GOPATH fundamental

    $ go get -u github.com/ravivendra/gosend-grid

Currently I am on progress to make it compatible with GO Modules fundamental.

Coverage Test

Currently, these codes have been completed with unit test, just run command below to run the test :

$ go test -v -cover

Here is the result of coverage test :

ravivendra:gosend-grid ravivendra$ go test -cover
PASS
coverage: 90.5% of statements
ok  	github.com/ravivendra/gosend-grid	1.436s

License

MIT License

Documentation

Index

Constants

View Source
const (
	// Method : http method
	Method = "POST"

	// SendgridAPIURL : base URL of Sendgrid
	SendgridAPIURL = "https://api.sendgrid.com"

	// SendgridAPIEndpoint : endpoint of Sendgrid
	SendgridAPIEndpoint = "/v3/mail/send"
)

Variables

This section is empty.

Functions

func DoSend

func DoSend(key, format, from, fromName, to, toName, subject, body string) (string, string, error)

DoSend : do send email using Sendgrid

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL