title: How to 'break' or 'continue' in GoRoutine in for loop?
body: <p>I'm noob in golang.
  I want to break or continue in GoRoutine which is included in for loop.</p>
  <p>Below is my code</p>
  <pre><code>for i, m := range something {
    go func(i int, m someModel){
      if m.Name == &quot;AAA&quot; {
        continue;   // Here occurs error
      }
  
      // Do something
      // which is very long....
    }
  }
  </code></pre>
  <p>In vsCode, the error says that <strong>&quot;continue not in for statement&quot;.</strong></p>
  <p>I know that it can be easily solved by (if ~ else) statements,
  but the 'else' part in my code is too long, which makes the code looks dirty.<br />
  I just want to know if there are other ways to solve this.</p>
  <p>Thanks.</p>