Created
July 19, 2022 10:28
-
-
Save nidhi-canopas/6f0f373e9e596303695404f3be750187 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func MockJsonDelete(c *gin.Context, params gin.Params) { | |
| c.Request.Method = "DELETE" | |
| c.Request.Header.Set("Content-Type", "application/json") | |
| c.Set("user_id", 1) | |
| c.Params = params | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment