go-zero/core/lang/lang.go
2020-07-26 17:09:05 +08:00

17 lines
192 B
Go

package lang
import "log"
var Placeholder PlaceholderType
type (
GenericType = interface{}
PlaceholderType = struct{}
)
func Must(err error) {
if err != nil {
log.Fatal(err)
}
}