mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-05-12 22:48:27 -05:00
Update project code snippets
This commit is contained in:
Vendored
+13
-5
@@ -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