@@ -1334,19 +1334,19 @@ var twoWayCrossItems = []crossTypeItem{
1334
1334
{& struct { I int }{42 }, & struct { I float64 }{42 }},
1335
1335
1336
1336
// int <=> bool
1337
- // {&struct{ I int }{1}, &struct{ I bool }{true}},
1338
- // {&struct{ I int }{0}, &struct{ I bool }{false}},
1337
+ {& struct { I int }{1 }, & struct { I bool }{true }},
1338
+ {& struct { I int }{0 }, & struct { I bool }{false }},
1339
1339
1340
1340
// uint <=> float64
1341
1341
{& struct { I uint }{42 }, & struct { I float64 }{42 }},
1342
1342
1343
1343
// uint <=> bool
1344
- // {&struct{ I uint }{1}, &struct{ I bool }{true}},
1345
- // {&struct{ I uint }{0}, &struct{ I bool }{false}},
1344
+ {& struct { I uint }{1 }, & struct { I bool }{true }},
1345
+ {& struct { I uint }{0 }, & struct { I bool }{false }},
1346
1346
1347
1347
// float64 <=> bool
1348
- // {&struct{ I float64 }{1}, &struct{ I bool }{true}},
1349
- // {&struct{ I float64 }{0}, &struct{ I bool }{false}},
1348
+ {& struct { I float64 }{1 }, & struct { I bool }{true }},
1349
+ {& struct { I float64 }{0 }, & struct { I bool }{false }},
1350
1350
1351
1351
// string <=> string and string <=> []byte
1352
1352
// {&struct{ S []byte }{[]byte("abc")}, &struct{ S string }{"abc"}},
@@ -1366,17 +1366,17 @@ var twoWayCrossItems = []crossTypeItem{
1366
1366
// {&struct{ A []byte }{[]byte("abc")}, map[string]string{"a": "abc"}},
1367
1367
{& struct { A uint }{42 }, map [string ]int {"a" : 42 }},
1368
1368
{& struct { A uint }{42 }, map [string ]float64 {"a" : 42 }},
1369
- // {&struct{ A uint }{1}, map[string]bool{"a": true}},
1369
+ {& struct { A uint }{1 }, map [string ]bool {"a" : true }},
1370
1370
{& struct { A int }{42 }, map [string ]uint {"a" : 42 }},
1371
1371
{& struct { A int }{42 }, map [string ]float64 {"a" : 42 }},
1372
- // {&struct{ A int }{1}, map[string]bool{"a": true}},
1372
+ {& struct { A int }{1 }, map [string ]bool {"a" : true }},
1373
1373
{& struct { A float64 }{42 }, map [string ]float32 {"a" : 42 }},
1374
1374
{& struct { A float64 }{42 }, map [string ]int {"a" : 42 }},
1375
1375
{& struct { A float64 }{42 }, map [string ]uint {"a" : 42 }},
1376
- // {&struct{ A float64 }{1}, map[string]bool{"a": true}},
1377
- // {&struct{ A bool }{true}, map[string]int{"a": 1}},
1378
- // {&struct{ A bool }{true}, map[string]uint{"a": 1}},
1379
- // {&struct{ A bool }{true}, map[string]float64{"a": 1}},
1376
+ {& struct { A float64 }{1 }, map [string ]bool {"a" : true }},
1377
+ {& struct { A bool }{true }, map [string ]int {"a" : 1 }},
1378
+ {& struct { A bool }{true }, map [string ]uint {"a" : 1 }},
1379
+ {& struct { A bool }{true }, map [string ]float64 {"a" : 1 }},
1380
1380
{& struct { A * * byte }{& byteptr }, map [string ]byte {"a" : 8 }},
1381
1381
1382
1382
// url.URL <=> string
@@ -1483,7 +1483,7 @@ var twoWayCrossItems = []crossTypeItem{
1483
1483
// json.Number <=> int64, float64
1484
1484
{& struct { N json.Number }{"5" }, map [string ]interface {}{"n" : int64 (5 )}},
1485
1485
{& struct { N json.Number }{"5.05" }, map [string ]interface {}{"n" : 5.05 }},
1486
- // {&struct{ N json.Number }{"9223372036854776000"}, map[string]interface{}{"n": float64(1 << 63)}},
1486
+ {& struct { N json.Number }{"9223372036854776000" }, map [string ]interface {}{"n" : float64 (1 << 63 )}},
1487
1487
1488
1488
// bson.D <=> non-struct getter/setter
1489
1489
// {&bson.D{{"a", 1}}, &getterSetterD{{"a", 1}, {"suffix", true}}},
0 commit comments