reflect.Kind
suggest changeFunction Kind()
on reflect.Value
returns reflect.Kind
type describing type of the value.
Here are all possible values:
type Kind uint
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
)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents