Categorygithub.com/rnben/go-break-select-in-for
modulepackage
0.1.0
Repository: https://github.com/rnben/go-break-select-in-for.git
Documentation: pkg.go.dev

# README

go-break-select-in-for

The Go linter go-break-select-in-for checks that break statement inside select statement inside for loop.

For example, in myFunc the break may want to exit the outer for loop, but it doesn't work as expected.

func myFunc() {
    for {
        select {
        case <-ch:
            break // should be careful
        }
    }
}

# Packages

No description provided by the author
No description provided by the author
No description provided by the author