-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the recommended way to initialize the C.Env map? #11
Comments
Just for an example, something like below fails, because
|
Yeah, the current behavior is by design—you're supposed to check I think the right place to enforce that |
I think explicit initialization goes well with the philosophy of the framework. Though I think it's worth mentioning it somewhere and have an example demonstrating the case. 👍 for middleware. Thanks |
I pushed a standard middleware for this, along with a bit of documentation about the behavior. I probably owe you a bit more documentation than that, but that's going to go on the back burner for now (it probably belongs in a "how do you even middleware?" section of some document) |
After checking the middleware package I now see why I got it wrong in the first place. Anyway thanks for the |
Is it designed to check if the Env map is nil first before assigning values in middle-ware?
The text was updated successfully, but these errors were encountered: