Yeah, that's not `for {} else {}`. This is spelled
```
var done bool
for condition() {
done = true
body()
}
if !done {
outOfBody()
}
```
On Wed, 2018-05-02 at 22:45 -0700, Sokolov Yura wrote:
>
> for {
> Body()
> if !Condition() {
> break
> }
> }
>
> It is thats simple, guys.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.