Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 460 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 460 Bytes

mgo-driver

Install

$ go get github.com/innotechdevops/mgo-driver

How to use

  • Wtih env
driver := mgodriver.New(mgodriver.ConfigEnv())
  • With config
driver := mgodriver.New(mgodriver.Config{
    User:         os.Getenv("MARIA_USER"),
    Pass:         os.Getenv("MARIA_PASS"),
    Host:         os.Getenv("MARIA_HOST"),
    DatabaseName: os.Getenv("MARIA_DATABASE"),
    Port:         mgodriver.DefaultPort,
})