Add snippet for go error handling
This commit is contained in:
parent
fee0736439
commit
bc201b3581
@ -6,3 +6,8 @@ snippet main
|
||||
func main() {
|
||||
$0
|
||||
}
|
||||
|
||||
snippet err
|
||||
if err != nil {
|
||||
$0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user