From 1e3b6e0a57e91d6d38786e264afc5d6fbe5fd28f Mon Sep 17 00:00:00 2001 From: Michael Banzon Date: Tue, 16 Aug 2016 17:15:06 +0200 Subject: [PATCH] Added semantic versioning. Fixes #57 --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c653117..896070c 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,26 @@ Mailgun with Go =============== -[![GoDoc](https://godoc.org/github.com/mailgun/mailgun-go?status.svg)](https://godoc.org/github.com/mailgun/mailgun-go) +[![GoDoc](https://godoc.org/gopkg.in/mailgun/mailgun-go.v1?status.svg)](https://godoc.org/gopkg.in/mailgun/mailgun-go.v1) Go library for interacting with the [Mailgun](https://mailgun.com/) [API](https://documentation.mailgun.com/api_reference.html). +Download the library + +``` +go get gopkg.in/mailgun/mailgun-go.v1 +``` + +# Sending mail + +You just need your domain, public and private API key from the Mailgun admin interface to get started sending using the +library: + +```Go +mg := mailgun.NewMailgun(domain, apiKey, publicApiKey) +message := mailgun.NewMessage("sender@example.com", "Fancy subject!", "Hello from Mailgun Go!", "recipient@example.com") +``` # Testing