We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5609c8 commit 0e69719Copy full SHA for 0e69719
reflectx/reflect_test.go
@@ -93,6 +93,20 @@ func TestBasicEmbedded(t *testing.T) {
93
}
94
95
96
+func TestEmbeddedSimple(t *testing.T) {
97
+ type UUID [16]byte
98
+ type MyID struct {
99
+ UUID
100
+ }
101
+ type Item struct {
102
+ ID MyID
103
104
+ z := Item{}
105
+
106
+ m := NewMapper("db")
107
+ m.TypeMap(reflect.TypeOf(z))
108
+}
109
110
func TestBasicEmbeddedWithTags(t *testing.T) {
111
type Foo struct {
112
A int `db:"a"`
0 commit comments