github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/gopkg.in/mgo.v2/saslimpl.go (about) 1 //+build sasl 2 3 package mgo 4 5 import ( 6 "gopkg.in/mgo.v2/internal/sasl" 7 ) 8 9 func saslNew(cred Credential, host string) (saslStepper, error) { 10 return sasl.New(cred.Username, cred.Password, cred.Mechanism, cred.Service, host) 11 }