package db import ( "sync" "github.com/jmoiron/sqlx" ) var ( config Config db *sqlx.DB //err error once sync.Once defaultDB *DB )