package main import ( "log" "reflect" "testing" _ "github.com/go-sql-driver/mysql" ) func TestMain(t *testing.T) { // model.Models.SetSqlxDriver("mysql", "php:aFk3i4Dj#76!4sd@tcp(47.243.100.6:3306)/zunxinfinance?parseTime=true&charset=utf8mb4&timeout=10s") // model.Models.KillaraCustomerModel.Find(context.TODO()) main() } func TestCaseZero(t *testing.T) { var a string = "" var b string var c int = 1 a = "" log.Println(reflect.ValueOf(a).IsZero(), reflect.ValueOf(b).IsZero(), reflect.ValueOf(c).IsZero()) }