Label Breaks In Go

1 · · Nov. 21, 2013, midnight
Have you ever found yourself in this situation. You have a case statement inside of a for loop and you would like to break from both the case and for statements in a single call? var err error timeout := time.After(30 * time.Second) sigChan := make(chan os.Signal, 1) signal.Notify(sigChan, os.Interrupt) complete := make(chan error) go launchProcessor(complete) for {     select {     case <-sigChan:        atomic.StoreInt32(&shutdownFlag, 1)...