blob: 96a9fec79940922f82c7254cd633e60bd4030f94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
snippet ec "if err no nil"
if err != nil {
return $1err
}
$0
endsnippet
snippet eh "if err no nil write http"
if err != nil {
${1:http}.Error(w, err.Error(), http.Status${2:InternalServerError})
return
}
$0
endsnippet
|