2024-04-07 10:12:24 +00:00
|
|
|
package main
|
|
|
|
|
2024-04-08 10:13:01 +00:00
|
|
|
import (
|
2024-04-10 06:58:19 +00:00
|
|
|
"log"
|
|
|
|
"reflect"
|
2024-04-08 10:13:01 +00:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
_ "github.com/go-sql-driver/mysql"
|
|
|
|
)
|
2024-04-07 10:12:24 +00:00
|
|
|
|
|
|
|
func TestMain(t *testing.T) {
|
2024-04-09 05:38:29 +00:00
|
|
|
// 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())
|
2024-04-07 10:12:24 +00:00
|
|
|
main()
|
|
|
|
}
|
2024-04-10 06:58:19 +00:00
|
|
|
|
|
|
|
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())
|
|
|
|
}
|