aboutsummaryrefslogtreecommitdiff
path: root/go/ssa/testdata/src/reflect/reflect.go
blob: f5d7ba2a0a1e41ce1037b14f72cddfaac4662e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package reflect

type Type interface {
	Elem() Type
	Kind() Kind
	String() string
}

type Value struct{}

func (Value) String() string
func (Value) Elem() Value
func (Value) Field(int) Value
func (Value) Index(i int) Value
func (Value) Int() int64
func (Value) Interface() interface{}
func (Value) IsNil() bool
func (Value) IsValid() bool
func (Value) Kind() Kind
func (Value) Len() int
func (Value) MapIndex(Value) Value
func (Value) MapKeys() []Value
func (Value) NumField() int
func (Value) Pointer() uintptr
func (Value) SetInt(int64)
func (Value) Type() Type

func SliceOf(Type) Type
func TypeOf(interface{}) Type
func ValueOf(interface{}) Value

type Kind uint

const (
	Invalid Kind = iota
	Int
	Pointer
)

func DeepEqual(x, y interface{}) bool