@@ -295,23 +295,23 @@ const interfaceType = "interface"
295295var primitiveTypeDatabase = func () map [string ]reflect.Type {
296296 r := make (map [string ]reflect.Type )
297297 for _ , t := range []reflect.Type {
298- reflect .TypeOf ( false ),
299- reflect .TypeOf ( int ( 0 ) ),
300- reflect .TypeOf ( int8 ( 0 ) ),
301- reflect .TypeOf ( int16 ( 0 ) ),
302- reflect .TypeOf ( int32 ( 0 ) ),
303- reflect .TypeOf ( int64 ( 0 ) ),
304- reflect .TypeOf ( uint ( 0 ) ),
305- reflect .TypeOf ( uintptr ( 0 ) ),
306- reflect .TypeOf ( uint8 ( 0 ) ),
307- reflect .TypeOf ( uint16 ( 0 ) ),
308- reflect .TypeOf ( uint32 ( 0 ) ),
309- reflect .TypeOf ( uint64 ( 0 ) ),
310- reflect .TypeOf ( "" ),
311- reflect .TypeOf ( float32 ( 0.0 ) ),
312- reflect .TypeOf ( float64 ( 0.0 ) ),
313- reflect .TypeOf ( complex64 ( 0.0 ) ),
314- reflect .TypeOf ( complex128 ( 0.0 ) ),
298+ reflect .TypeFor [ bool ]( ),
299+ reflect .TypeFor [ int ]( ),
300+ reflect .TypeFor [ int8 ]( ),
301+ reflect .TypeFor [ int16 ]( ),
302+ reflect .TypeFor [ int32 ]( ),
303+ reflect .TypeFor [ int64 ]( ),
304+ reflect .TypeFor [ uint ]( ),
305+ reflect .TypeFor [ uintptr ]( ),
306+ reflect .TypeFor [ uint8 ]( ),
307+ reflect .TypeFor [ uint16 ]( ),
308+ reflect .TypeFor [ uint32 ]( ),
309+ reflect .TypeFor [ uint64 ]( ),
310+ reflect .TypeFor [ string ]( ),
311+ reflect .TypeFor [ float32 ]( ),
312+ reflect .TypeFor [ float64 ]( ),
313+ reflect .TypeFor [ complex64 ]( ),
314+ reflect .TypeFor [ complex128 ]( ),
315315 } {
316316 r [t .Name ()] = t
317317 }
0 commit comments