From 31de6a5e48b65dface121e654e40e06de6bf364a Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 2 Oct 2019 09:25:34 +0900 Subject: Update postfix completion --- template/go/pattern.stpl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'template/go') 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_}} + -- cgit v1.2.3-54-g00ecf