Updated plugins
This commit is contained in:
1 parent
6bd9eda8c3
commit
a6b64938eb
199 files changed
+2897
-980
No files matched your search
@@ -257,3 +257,8 @@ snippet ja
|
||||
func (p *$1) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(&struct{ *$1Alias }{(*$1Alias)(p)})
|
||||
}
|
||||
|
||||
snippet errwr # Error handling with errors.Wrap
|
||||
if ${1}err != nil {
|
||||
return errors.Wrap(err, "${2}")
|
||||
}
|
||||
Reference in new issue
Block a user