How to import the library
import (
"github.com/mhseptiadi/golib/checkdocker"
"github.com/mhseptiadi/golib/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)
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)
}