VS Code Golang Snippets
Snippets
- Package snippets:
pkg : Create a new package
pmn : Create a package main
- Function snippets:
fnn : Create a new function without parameters
fnc : Create a new function with a parameter
fnm : Create a new main function
- Declaration snippets:
vab : Create a new variable block
cob : Create a new constant block
- Print snippets
fpt : Create a single print
fpl : Create a single print with new line
- statement snippets:
ifs : Create a new simple if statement
ife : Create a new if/else statement
ier : Create a new if != nil statement
swc : Create a new simple switch statement
foc : Create a new for statement with count
frg : Create a new for/range statement
| |