wagslane / go-password-validator

Validate the Strength of a Password in Go
https://blog.boot.dev/open-source/how-to-validate-passwords/
MIT License
500 stars 40 forks source link

Replace if..continue with switch/case #12

Closed xpetit closed 2 years ago

xpetit commented 2 years ago

From Effective Go: It's therefore possible—and idiomatic—to write an if-else-if-else chain as a switch.

The tests pass.

wagslane commented 2 years ago

Looks great! Thanks