Skip to content

Commit

Permalink
Merge pull request #2627 from bhcleek/snippets
Browse files Browse the repository at this point in the history
snippets: remove rew snippet
  • Loading branch information
bhcleek authored Dec 18, 2019
2 parents e433d67 + 185720d commit 2debac8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gosnippets/UltiSnips/go.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ snippet ewf "errors.Wrapf"
errors.Wrapf(${1:err}, "${2:message %v}", ${3:args...})
endsnippet

snippet rew "return errors.Wrap" b!
return errors.Wrap(${1:err}, "${2:message}")
endsnippet


# error snippet
snippet errn "Error return" !b
if err != nil {
Expand Down Expand Up @@ -451,7 +446,7 @@ for _, tt := range tests {
endsnippet


snippet hf "http.HandlerFunc" !b
snippet hf "http.HandlerFunc"
func ${1:handler}(w http.ResponseWriter, r *http.Request) {
${0:fmt.Fprintf(w, "hello world")}
}
Expand Down

0 comments on commit 2debac8

Please sign in to comment.