blob: 8a23d272f934562f3f939b7d36f14ca675733703 [file] [log] [blame]
package reflect
type Type interface {
String() string
Kind() Kind
Elem() Type
}
type Value struct {
}
func (Value) String() string
func (Value) Elem() string
func (Value) Kind() Kind
func (Value) Int() int64
func SliceOf(Type) Type
func TypeOf(interface{}) Type
func ValueOf(interface{}) Value
type Kind uint
// Constants need to be kept in sync with the actual definitions for comparisons in tests.
const (
Invalid Kind = iota
Bool
Int
Int8
Int16
Int32
Int64
Uint
Uint8
Uint16
Uint32
Uint64
Uintptr
Float32
Float64
Complex64
Complex128
Array
Chan
Func
Interface
Map
Pointer
Slice
String
Struct
UnsafePointer
)
const Ptr = Pointer