I try to catch the panic
func test(/*some input*/) (output string,err111 error) {
defer func(){
if err := recover(); err != nil {
output = ""
err111 = errors.New(err.(string))
}
}()
....
}
but goroutine tell me
interface conversion: interface {} is runtime.errorString, not string
how can I dump the recover() error and return it?