开发者

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

开发者 https://www.devze.com 2022-12-07 17:20 出处:网络
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

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

精彩评论

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