Пример #1
0
Файл: http.go Проект: Qesy/web
func DbConn() {
	cTemp := Siteinfo()
	ConnDb.Conn, ConnDb.Error = db.Connect(cTemp.DbInfo.DbHost, cTemp.DbInfo.DbName, cTemp.DbInfo.DbUser, cTemp.DbInfo.DbPass)
}
Пример #2
0
func DbConn() {
	conn, _ := db.Connect()
	ConnDb.Conn = conn
}