Documentation ¶
Index ¶
- func Swapper(slice interface{}) func(i, j int)
- type Kind
- type StructField
- type Type
- type Value
- func (v Value) Addr() Value
- func (v Value) Bool() bool
- func (v Value) Bytes() []byte
- func (v Value) CanAddr() bool
- func (v Value) CanInterface() bool
- func (v Value) CanSet() bool
- func (v Value) Complex() complex128
- func (v Value) Elem() Value
- func (v Value) Field(i int) Value
- func (v Value) Float() float64
- func (v Value) Index(i int) Value
- func (v Value) Int() int64
- func (v Value) Interface() interface{}
- func (v Value) IsNil() bool
- func (v Value) IsValid() bool
- func (v Value) Kind() Kind
- func (v Value) Len() int
- func (v Value) MapIndex(key Value) Value
- func (v Value) MapKeys() []Value
- func (v Value) NumField() int
- func (v Value) Pointer() uintptr
- func (v Value) Set(x Value)
- func (v Value) SetBool(x bool)
- func (v Value) SetComplex(x complex128)
- func (v Value) SetFloat(x float64)
- func (v Value) SetInt(x int64)
- func (v Value) SetString(x string)
- func (v Value) SetUint(x uint64)
- func (v Value) Slice(i, j int) Value
- func (v Value) String() string
- func (v Value) Type() Type
- func (v Value) Uint() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kind ¶
type Kind uintptr
A Kind is the number that the compiler uses for this type.
Not used directly. These types are all replaced with the number the compiler uses internally for the type.
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 Ptr Slice String Struct UnsafePointer )
Copied from reflect/type.go https://golang.org/src/reflect/type.go?s=8302:8316#L217
type StructField ¶
type Type ¶
type Type uintptr
The typecode as used in an interface{}.
func (Type) Field ¶
func (t Type) Field(i int) StructField
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
This is the same thing as an interface{}.
func (Value) CanInterface ¶
func (Value) Complex ¶
func (v Value) Complex() complex128
func (Value) SetComplex ¶
func (v Value) SetComplex(x complex128)
Click to show internal directories.
Click to hide internal directories.