gorm/schema/schema_test.go
2018-02-25 14:33:50 +08:00

21 lines
244 B
Go

package schema
import (
"testing"
"github.com/davecgh/go-spew/spew"
)
type MyStruct struct {
ID int
Name string
}
type BelongTo struct {
}
func TestParseSchema(t *testing.T) {
Schema := ParseSchema(&MyStruct{})
spew.Dump(Schema)
}