aboutsummaryrefslogtreecommitdiff
path: root/template/go/pattern.stpl
blob: 45c3b0297249b39ebcac2e64ee68844df5ac5604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\(\S\+\)\.var$
	var {{$1}} = {{_cursor_}}

\(\S\+\)\.iferr$
	if {{$1}} != nil {
		return err
	}
	{{_cursor_}}

\(\S\+\)\.fatal$
	if {{$1}} != nil {
		log.Fatal(err)
	}
	{{_cursor_}}

\(\S\+\)\.log$
	log.Println({{$1}})
	{{_cursor_}}