From e688bfe1fdd6b5a2a8ddb789bb2b7cf2f7b9c3c0 Mon Sep 17 00:00:00 2001 From: "Simeon F. Willbanks" Date: Fri, 26 Jul 2013 08:56:21 -0700 Subject: [PATCH] Add Go snippets for invoking named and anonymous functions in goroutines --- snippets/go.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snippets/go.snippets b/snippets/go.snippets index c4aaf60..94610fc 100644 --- a/snippets/go.snippets +++ b/snippets/go.snippets @@ -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})