From e2b639cc86480085a3d90ccb02d0286fe7c55c7c Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 15 Mar 2021 11:26:21 -0700 Subject: [PATCH] Add go snippets --- go/.config/vim/snips/go.snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/go/.config/vim/snips/go.snippets b/go/.config/vim/snips/go.snippets index 0a17a6d..a50a3ce 100644 --- a/go/.config/vim/snips/go.snippets +++ b/go/.config/vim/snips/go.snippets @@ -1,3 +1,9 @@ snippet ignore "ignore function" ! func(...interface{}) {}(${1}) endsnippet +snippet ctx "context" ! +ctx context.Context +endsnippet +snippet e "error wrapper" ! +e := wrap(".") +endsnippet