mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-01-24 05:28:36 -06:00
Update project code snippets to improve code readability and consistency
This commit is contained in:
6
.vscode/project.code-snippets
vendored
6
.vscode/project.code-snippets
vendored
@@ -10,21 +10,21 @@
|
||||
"description": "Inserts code to check for error and return it"
|
||||
},
|
||||
"Get request context": {
|
||||
"prefix": "grdc",
|
||||
"prefix": "grcr", // Get Request Context Request
|
||||
"body": [
|
||||
"ctx := c.Request().Context()"
|
||||
],
|
||||
"description": "Get's the request from echo context"
|
||||
},
|
||||
"Get request echo context": {
|
||||
"prefix": "grec",
|
||||
"prefix": "grce", // Get Request Context Echo
|
||||
"body": [
|
||||
"reqCtx := reqctx.GetCtx(c)"
|
||||
],
|
||||
"description": "Inserts code to get echo context from a request"
|
||||
},
|
||||
"Get both request and echo context": {
|
||||
"prefix": "grc",
|
||||
"prefix": "grcb", // Get Request Context Both
|
||||
"body": [
|
||||
"ctx := c.Request().Context()",
|
||||
"reqCtx := reqctx.GetCtx(c)"
|
||||
|
||||
Reference in New Issue
Block a user