From ead451fa74a98628ddeb50ab6d901be18b60bba7 Mon Sep 17 00:00:00 2001 From: Josh Lubaway Date: Sat, 29 Nov 2014 14:04:16 -0800 Subject: [PATCH] Add a `fmt.Fprintf` snippet. To activate type `fmt.` followed by ``. yields: fmt.Fprintf(w, "Hello World!") --- Snippets/Fprintf.tmSnippet | 16 ++++++++++++++++ info.plist | 1 + 2 files changed, 17 insertions(+) create mode 100644 Snippets/Fprintf.tmSnippet diff --git a/Snippets/Fprintf.tmSnippet b/Snippets/Fprintf.tmSnippet new file mode 100644 index 0000000..a19a6b8 --- /dev/null +++ b/Snippets/Fprintf.tmSnippet @@ -0,0 +1,16 @@ + + + + + content + fmt.Fprintf(${1:w}, ${2:"${3:Hello World!}"})$0 + name + Fprintf + scope + source.go + tabTrigger + fmt. + uuid + 3AC6807B-E0F6-4D68-90E9-A19A0F5F0176 + + diff --git a/info.plist b/info.plist index 5c8de97..c84bb84 100644 --- a/info.plist +++ b/info.plist @@ -100,6 +100,7 @@ F5E717F6-A08B-4766-B1D5-0E43C796FDE1 6FCDC940-B46E-44E0-84F4-F2296EB17106 12AC27D2-4B5D-467D-AA52-1C8AACF753E7 + 3AC6807B-E0F6-4D68-90E9-A19A0F5F0176 name Idioms