go - Catch error and do other something -


i'm trying create function publish message rabbitmq goroutine. want that: when call function 1000 time @ same time, if have error, function catch error , redial 1 time , push message array resend simultaneously.

thanks , please me!


Comments