code: func didPanic(f PanicTestFunc) (bool, interface{}) {
  
  	didPanic := false
  	var message interface{}
  	func() {
  
  		defer func() {
  			if message = recover(); message != nil {
  				didPanic = true
  			}
  		}()
  
  		// call the target function
  		f()
  
  	}()
  
  	return didPanic, message
  
  }
docs: // didPanic returns true if the function passed to it panics. Otherwise, it returns false.