Setting Path Params in context #148
-
I cannot set PathParams in my gofr context when creating a context for my Unit Testing. It always gives an issue that no SetPathParams property exists in gofr context. |
Beta Was this translation helpful? Give feedback.
Answered by
Umang01-hash
Jan 2, 2024
Replies: 1 comment
-
@Winkingroad setting path params in context can be done using Feel free to refer to it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Winkingroad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Winkingroad setting path params in context can be done using
SetPathParams
method of context.Here is an example where we are using the same in unit testing:
gofr/examples/using-postgres/handler/handlers_test.go
Line 125 in fe31a5d
Feel free to refer to it.