reflect: implement Value.Elem() for interface values

This commit is contained in:
Ayke van Laethem
2021-11-11 22:13:30 +01:00
committed by Ron Evans
parent d15e32fb89
commit 823c9c25cf
3 changed files with 41 additions and 1 deletions
+28
View File
@@ -334,6 +334,34 @@ reflect type: ptr
exported: false
reflect type: int addrable=true
int: 42
reflect type: slice comparable=false
slice: interface 3 3
pointer: true
nil: false
indexing: 0
reflect type: interface settable=true addrable=true
interface
nil: false
reflect type: int
int: 3
indexing: 1
reflect type: interface settable=true addrable=true
interface
nil: false
reflect type: string
string: str 3
reflect type: uint8
uint: 115
reflect type: uint8
uint: 116
reflect type: uint8
uint: 114
indexing: 2
reflect type: interface settable=true addrable=true
interface
nil: false
reflect type: complex128
complex: (-4.000000e+000+2.500000e+000i)
reflect type: ptr
pointer: true int8
nil: false