| 1 |
package reflect |
| 2 |
|
| 3 |
type Type interface { |
| 4 |
Elem() Type |
| 5 |
Kind() Kind |
| 6 |
String() string |
| 7 |
} |
| 8 |
|
| 9 |
type Value struct{} |
| 10 |
|
| 11 |
func (Value) String() string |
| 12 |
func (Value) Elem() Value |
| 13 |
func (Value) Field(int) Value |
| 14 |
func (Value) Index(i int) Value |
| 15 |
func (Value) Int() int64 |
| 16 |
func (Value) Interface() interface{} |
| 17 |
func (Value) IsNil() bool |
| 18 |
func (Value) IsValid() bool |
| 19 |
func (Value) Kind() Kind |
| 20 |
func (Value) Len() int |
| 21 |
func (Value) MapIndex(Value) Value |
| 22 |
func (Value) MapKeys() []Value |
| 23 |
func (Value) NumField() int |
| 24 |
func (Value) Pointer() uintptr |
| 25 |
func (Value) SetInt(int64) |
| 26 |
func (Value) Type() Type |
| 27 |
|
| 28 |
func SliceOf(Type) Type |
| 29 |
func TypeOf(interface{}) Type |
| 30 |
func ValueOf(interface{}) Value |
| 31 |
|
| 32 |
type Kind uint |
| 33 |
|
| 34 |
const ( |
| 35 |
Invalid Kind = iota |
| 36 |
Int |
| 37 |
Pointer |
| 38 |
) |
| 39 |
|
| 40 |
func DeepEqual(x, y interface{}) bool |