mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-25 05:58:29 -06:00
Update project code snippets
This commit is contained in:
18
.vscode/project.code-snippets
vendored
18
.vscode/project.code-snippets
vendored
@@ -10,17 +10,25 @@
|
||||
"description": "Inserts code to check for error and return it"
|
||||
},
|
||||
"Get request context": {
|
||||
"prefix": "grc",
|
||||
"prefix": "grdc",
|
||||
"body": [
|
||||
"ctx := c.Request().Context()"
|
||||
],
|
||||
"description": "Get's the request from echo context"
|
||||
},
|
||||
"Get All Context": {
|
||||
"prefix": "gac",
|
||||
"Get request echo context": {
|
||||
"prefix": "grec",
|
||||
"body": [
|
||||
"allCtx := reqctx.GetAllCtx(c)"
|
||||
"reqCtx := reqctx.GetCtx(c)"
|
||||
],
|
||||
"description": "Inserts code to get all contexts from a request"
|
||||
"description": "Inserts code to get echo context from a request"
|
||||
},
|
||||
"Get both request and echo context": {
|
||||
"prefix": "grc",
|
||||
"body": [
|
||||
"ctx := c.Request().Context()",
|
||||
"reqCtx := reqctx.GetCtx(c)"
|
||||
],
|
||||
"description": "Inserts code to get both request and echo context"
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user