开发者

How to 'continue' in GoRoutine with some return value in for loop?

Ho开发者_StackOverfloww can we use the continue in GoRoutine, I saw some solutions like use return, but what if that GoRotine is having some return value In my case

go func(a string) error{
  if(<condition>){
     continue // here getting error tried return as well still getting error
  }else {
return error
}

}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜