GoPLS Viewer

Home|gopls/go/ssa/interp/testdata/src/reflect/reflect.go
1package reflect
2
3type Type interface {
4    String() string
5    Kind() Kind
6    Elem() Type
7}
8
9type Value struct {
10}
11
12func (ValueString() string
13
14func (ValueElem() Value
15func (ValueKind() Kind
16func (ValueInt() int64
17func (ValueIsValid() bool
18func (ValueIsNil() bool
19func (ValueLen() int
20func (ValuePointer() uintptr
21func (ValueIndex(i intValue
22func (ValueType() Type
23func (ValueField(intValue
24func (ValueMapIndex(ValueValue
25func (ValueMapKeys() []Value
26func (ValueNumField() int
27func (ValueInterface() interface{}
28
29func SliceOf(TypeType
30
31func TypeOf(interface{}) Type
32
33func ValueOf(interface{}) Value
34
35type Kind uint
36
37// Constants need to be kept in sync with the actual definitions for comparisons in tests.
38const (
39    Invalid Kind = iota
40    Bool
41    Int
42    Int8
43    Int16
44    Int32
45    Int64
46    Uint
47    Uint8
48    Uint16
49    Uint32
50    Uint64
51    Uintptr
52    Float32
53    Float64
54    Complex64
55    Complex128
56    Array
57    Chan
58    Func
59    Interface
60    Map
61    Pointer
62    Slice
63    String
64    Struct
65    UnsafePointer
66)
67
68const Ptr = Pointer
69
MembersX
Value.Kind
Value.Index.i
Value.NumField
TypeOf
ValueOf
Kind
Value.MapKeys
Value.Interface
Value.String
Value.Int
Value.IsValid
Value.IsNil
Value.Type
Value.MapIndex
Ptr
Value
Value.Index
Value.Field
Invalid
Type
Value.Elem
Value.Len
Value.Pointer
SliceOf
Members
X