func (c Connection) User() string {
	var u string
	i := strings.Index(c.dsn, ":")
	if i != -1 {
		u = c.dsn[0:i]
	}
	return u
}
User() returns the username of the dsn
package connection
import (
	"database/sql"
	"fmt"
	"log"
	"strings"
	_ "github.com/go-sql-driver/mysql"
)
const (
	driver = "mysql"
)
type Connection struct {
	dsn     string
	db      *sql.DB
	version string
}
type Connections [](*Connection)
func NewConnection(dsn string) *Connection {
	c := new(Connection)
	if c != nil {
		c.dsn = dsn
	}
	return c
}
func (c *Connection) Open() {
	var err error
	c.db, err = sql.Open(driver, c.dsn)
	if err != nil {
		log.Fatal(fmt.Sprintf("Error opening connection to dsn: '%s': %s", c.dsn, err))
	}
	err = c.db.Ping()  
	if err != nil {
		log.Fatal(fmt.Sprintf("Error pinging host: '%s': %s", c.Hostname(), err))
	}
	c.getVersion()
}