Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 703 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 703 Bytes

import

How to import the library

import (
	"github.com/mhseptiadi/golib/checkdocker"
	"github.com/mhseptiadi/golib/sendgmail"
)

sendgmail

Golang library used for sending email using gmail provider

recipients := "[email protected],[email protected]"
subject := "Test Email Subject"
body := "Test Email Body"
sender := "[email protected]"
password := "senderpassword"
sendgmail.Send(recipients, subject, body, sender, password)

checkdocker

Golang library used for checking whether the list docker is running on the server

dockerNames := []string{"dockerimage1", "dockerimage2"}

err := checkdocker.Check(dockerNames)
if err != nil {
	fmt.Println(err)
}