Merge pull request #249 from simeonwillbanks/master

Add Go snippets for invoking named and anonymous functions in goroutines
This commit is contained in:
Honza Pokorny 2013-07-26 09:58:48 -07:00
commit 418b59e4fd

View File

@ -211,3 +211,11 @@ snippet t
# variable declaration
snippet v
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})