aboutsummaryrefslogtreecommitdiff
path: root/template/go
diff options
context:
space:
mode:
Diffstat (limited to 'template/go')
-rw-r--r--template/go/pattern.stpl23
1 files changed, 23 insertions, 0 deletions
diff --git a/template/go/pattern.stpl b/template/go/pattern.stpl
index 1fe0989..26ac4c6 100644
--- a/template/go/pattern.stpl
+++ b/template/go/pattern.stpl
@@ -56,3 +56,26 @@
\(\S.*\)\.spr\%[int]l\%[n]$
{{_cursor_}} fmt.Sprintln({{$1}})
+
+\(\S\+\)\.func$
+ func {{$1}} {
+ {{_cursor_}}
+ }
+
+\(\S\+\)\.struct$
+ type {{$1}} struct {
+ {{_cursor_}}
+ }
+
+\(\S\+\)\.int$
+ {{$1}} int
+ {{_cursor_}}
+
+\(\S\+\)\.string$
+ {{$1}} string
+ {{_cursor_}}
+
+\(\S\+\)\.bool$
+ {{$1}} bool
+ {{_cursor_}}
+