Some handy utils for the go programming language.
$ go get github.com/megabild/golang-utils
package main
import (
"fmt"
"github.com/megabild/golang-utils/mbpath"
"github.com/megabild/golang-utils/mbstring"
"github.com/megabild/golang-utils/mbmail"
)
func main() {
// prints "Hello World!"
fmt.Println(mbstring.Coalesce(" ","Hello World!"))
// prints "\temp\folder"
fmt.Println(mbpath.RemoveDriveLetter("C:\\temp\\folder"))
mailer := mbmail.Create("smtp.host.de", "username", "password", "Max Mustermann")
err := mailer.Send("recipient@mail.de", "subject", "message")
}