initial commit

This commit is contained in:
April Ayres-Griffiths
2018-01-20 11:05:04 +11:00
commit 75d42c4597
33 changed files with 13064 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package panic
func Do( f func(), h func(r interface{}) ) {
defer func() {
if r := recover(); r != nil {
h(r)
}
}()
f()
}