Add Go snippets for invoking named and anonymous functions in goroutines

This commit is contained in:
Simeon F. Willbanks 2013-07-26 08:56:21 -07:00
parent 8a0cd14a26
commit e688bfe1fd

View File

@ -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})