1 | // favourite golang snippet for error handing right now |
2 | |
3 | func must(action string, err error) { |
4 | if err != nil { |
5 | panic("-> Failed to " + action + ": " + err.Error()) |
6 | } |
7 | } |
Last active
1 | // favourite golang snippet for error handing right now |
2 | |
3 | func must(action string, err error) { |
4 | if err != nil { |
5 | panic("-> Failed to " + action + ": " + err.Error()) |
6 | } |
7 | } |