Skip to content

Releases: pengshaomin/gorm

2.0: rewrite if-else chain as switch statement (#2121)

Choose a tag to compare

@pengshaomin pengshaomin released this 03 Dec 03:15
From effective Go: https://golang.org/doc/effective_go.html#switch

> It's therefore possible—and idiomatic—to write an if-else-if-else chain as a switch.