Created
April 17, 2017 09:39
-
-
Save holmeszyx/2f0441febcda239237dae580ca7b947c to your computer and use it in GitHub Desktop.
VS code snippets
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
{ | |
/* | |
// Place your snippets for Go here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
} | |
*/ | |
"Create Echo httphandler func": { | |
"prefix": "ehttp", | |
"body": [ | |
"func $1(c echo.Context) error {", | |
" $2", | |
" return c.$3", | |
"}" | |
], | |
"description": "Create Echo http handler function" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment