Replies: 1 comment 1 reply
-
Ok, maybe I am answering my self ... I found this example in github: https://github.com/IEEE-VIT/cowin-emailer/blob/main/db/setup.go. Where a "global" variable is set. Is this a good Go pattern? Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am starting with Asynq and with Go as a programming language. I have a small project where I need the tasks to have access to a database.
Which would be the proper way to pass a database connection to the context of the task?
I have been looking around, but I am unable to find a way.
Thank you very much!
Xavi
Beta Was this translation helpful? Give feedback.
All reactions