I was asking about select.

On Saturday, September 20, 2025 at 4:26:27 AM UTC-6 Jan Mercl wrote:

> On Sat, Sep 20, 2025 at 12:05 PM Dean Schulze <[email protected]> 
> wrote:
>
> > The break keyword terminates execution of a select statement, but is 
> there any real use for break in a select / case statement?
>
> For example:
>
> loop:
>         for ... {
>                 switch ... {
>                 case foo:
>                         ...
>                 case bar:
>                         break loop
>                 }
>         }
>
>
>

-- 
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].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/8c5a6646-4e9b-4c65-beaf-733979e11025n%40googlegroups.com.

Reply via email to