Tags: pengshaomin/gorm
Tags
rewrite if-else chain as switch statement (go-gorm#2121) 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.