aboutsummaryrefslogtreecommitdiff
path: root/template/go/pattern.stpl
blob: 8bfb8b89b601c371c83bd6876e17b66af51c921d (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 {{$1}}
	}
	{{_cursor_}}

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

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