Skip to content

Request Context() #28

Answered by defval
doppl-neal asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @doppl-neal! Hopefully, I understand your concern correctly.

Passing request-scoped data with context and accepting it as the first argument of your functions is a common way in go.

As for this library, it was made for app initialization on purpose. Because of that, it is not recommended to resolve request-scoped data in runtime.

Please give an example of what you want if you need any more help.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by defval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants