You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the DB connection is happening in main():
t := connectToken{conf.ConfValues.DBDriver, conf.ConfValues.DBDSN}
db := connectDb(&t)
It would make more sense if the db connection instance lived together with the configuration logic, and was just passed around the rest of the program as a pointer in the Config struct (there's a TODO in the code).
The text was updated successfully, but these errors were encountered:
Currently the DB connection is happening in main():
It would make more sense if the db connection instance lived together with the configuration logic, and was just passed around the rest of the program as a pointer in the Config struct (there's a TODO in the code).
The text was updated successfully, but these errors were encountered: