As the title says, I don't know if having a few instructions is sql.Opengood or bad, or what, or if I should have a file with only initialization, something like:
var db *sql.DB
func init() {
var err error
db, err = sql.Open
}
just wondering what the best practice will be. Thanks!
source
share