mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -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