diff options
| author | Robert Günzler <r@gnzler.io> | 2020-06-29 00:05:38 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-06-29 00:05:38 +0200 |
| commit | be61896a229bf6ee3fd5e1de828b303c6a935168 (patch) | |
| tree | 403c4f339774776970187bea3f2aec750860ce89 /.vim/UltiSnips/go.snippets | |
| parent | 643cdfe279ba777cf6d63e8352b3a37796f48d10 (diff) | |
vim: remove err snippet, add http handler snippet for go
Diffstat (limited to '.vim/UltiSnips/go.snippets')
| -rw-r--r-- | .vim/UltiSnips/go.snippets | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.vim/UltiSnips/go.snippets b/.vim/UltiSnips/go.snippets index 9233be0..3152e3a 100644 --- a/.vim/UltiSnips/go.snippets +++ b/.vim/UltiSnips/go.snippets @@ -4,9 +4,8 @@ func main() { } endsnippet -snippet 'if err' "if err != nil {}" -if err != nil { - $1 +snippet hfn "http.HandlerFunc" +func $1(w http.ResponseWriter, r *http.Request) { + $0 } -$0 endsnippet |