Skip to content

mhseptiadi/golib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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)
}

About

golang library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages