21 lines
244 B
Go
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)
|
|
}
|