Skip to content

Instantly share code, notes, and snippets.

@GonZo
Created June 17, 2017 20:39
Show Gist options
  • Save GonZo/6144eab482b7ddd0fbc45b8d5710760c to your computer and use it in GitHub Desktop.
Save GonZo/6144eab482b7ddd0fbc45b8d5710760c to your computer and use it in GitHub Desktop.
VSCode golang CLI snippets
"package cli command": {
"prefix": "clicomm",
"body": [
"{"
"Name: \"${1:Name}\","
"Usage: \"${2:Usage}\","
"Description: \"${3:Descrition}\","
"Subcommands: ${4:Function},"
"}"
],
"description": "Cli command simple boilerplate"
},
"package cli command with action": {
"prefix": "clicomm",
"body": [
"{"
"Name: \"${1:Name}\","
"Usage: \"${2:Usage}\","
"Description: \"${3:Descrition}\","
"Action: ${4:Interface{}},"
"}"
],
"description": "Cli command simple boilerplate with action field"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment