Add Go snippets for invoking named and anonymous functions in goroutines
This commit is contained in:
parent
8a0cd14a26
commit
e688bfe1fd
@ -211,3 +211,11 @@ snippet t
|
|||||||
# variable declaration
|
# variable declaration
|
||||||
snippet v
|
snippet v
|
||||||
var ${1:t} ${2:string}
|
var ${1:t} ${2:string}
|
||||||
|
# goroutine named function
|
||||||
|
snippet g
|
||||||
|
go ${1:funcName}(${2})
|
||||||
|
# goroutine anonymous function
|
||||||
|
snippet ga
|
||||||
|
go func(${1} ${2:type}) {
|
||||||
|
${3:/* code */}
|
||||||
|
}(${4})
|
||||||
|
Loading…
Reference in New Issue
Block a user