reflect.Value.Kind (method)
83 uses
reflect (current package)
deepequal.go#L40: switch v1.Kind() {
deepequal.go#L64: switch v.Kind() {
deepequal.go#L90: switch v1.Kind() {
iter.go#L133: switch v.Kind() {
swapper.go#L20: if v.Kind() != Slice {
swapper.go#L21: panic(&ValueError{Method: "Swapper", Kind: v.Kind()})
value.go#L434: if x.Kind() == Invalid {
value.go#L1310: if v.Kind() == Pointer && v.typ().Elem().Kind() == abi.Struct {
value.go#L1333: if v.Kind() == Ptr && v.typ().Elem().Kind() == abi.Struct {
value.go#L1641: panic(&ValueError{"reflect.Value.IsZero", v.Kind()})
value.go#L1744: panic(&ValueError{"reflect.Value.SetZero", v.Kind()})
value.go#L1750: func (v Value) Kind() Kind {
value.go#L2934: switch v.Kind() {
value.go#L2942: panic(&ValueError{"reflect.Value.Clear", v.Kind()})
value.go#L3269: if v.Kind() != Pointer {
value.go#L3354: if v.Kind() == Interface && v.IsNil() {
value.go#L3418: k := v.Kind()
value.go#L3460: if v.Kind() == Interface {
value.go#L3463: if u.Kind() == Interface {
value.go#L3471: if v.Kind() != u.Kind() || v.Type() != u.Type() {
value.go#L3477: switch v.Kind() {
database/sql/driver
types.go#L86: switch sv.Kind() {
types.go#L114: switch rv.Kind() {
types.go#L233: if rv := reflect.ValueOf(vr); rv.Kind() == reflect.Pointer &&
types.go#L263: switch rv.Kind() {
types.go#L294: return nil, fmt.Errorf("unsupported type %T, a %s", v, rv.Kind())
encoding/asn1
asn1.go#L892: switch val := v; val.Kind() {
asn1.go#L1016: if canHaveDefaultValue(v.Kind()) {
asn1.go#L1116: if v.Kind() != reflect.Pointer || v.IsNil() {
marshal.go#L476: switch v := value; v.Kind() {
marshal.go#L581: if v.Kind() == reflect.Interface && v.Type().NumMethod() == 0 {
marshal.go#L585: if v.Kind() == reflect.Slice && v.Len() == 0 && params.omitEmpty {
marshal.go#L589: if params.optional && params.defaultValue != nil && canHaveDefaultValue(v.Kind()) {
encoding/binary
binary.go#L256: switch v.Kind() {
binary.go#L293: switch v.Kind() {
binary.go#L681: switch v.Kind() {
binary.go#L828: switch v.Kind() {
binary.go#L897: switch v.Kind() {
encoding/json
decode.go#L173: if rv.Kind() != reflect.Pointer || rv.IsNil() {
decode.go#L444: if v.Kind() != reflect.Pointer && v.Type().Name() != "" && v.CanAddr() {
decode.go#L451: if v.Kind() == reflect.Interface && !v.IsNil() {
decode.go#L453: if e.Kind() == reflect.Pointer && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Pointer) {
decode.go#L460: if v.Kind() != reflect.Pointer {
decode.go#L471: if v.Elem().Kind() == reflect.Interface && v.Elem().Elem() == v {
decode.go#L517: switch v.Kind() {
decode.go#L544: if v.Kind() == reflect.Slice {
decode.go#L579: if v.Kind() == reflect.Array {
decode.go#L587: if i == 0 && v.Kind() == reflect.Slice {
decode.go#L615: if v.Kind() == reflect.Interface && v.NumMethod() == 0 {
decode.go#L627: switch v.Kind() {
decode.go#L684: if v.Kind() == reflect.Map {
decode.go#L701: if subv.Kind() == reflect.Pointer {
decode.go#L762: if v.Kind() == reflect.Map {
decode.go#L892: switch v.Kind() {
decode.go#L905: switch v.Kind() {
decode.go#L930: switch v.Kind() {
decode.go#L966: switch v.Kind() {
decode.go#L968: if v.Kind() == reflect.String && v.Type() == numberType {
encode.go#L308: switch v.Kind() {
encode.go#L432: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L473: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L695: if fv.Kind() == reflect.Pointer {
encode.go#L948: if k.Kind() == reflect.String {
encode.go#L952: if k.Kind() == reflect.Pointer && k.IsNil() {
encode.go#L958: switch k.Kind() {
fmt
print.go#L343: if val.Kind() == reflect.Interface && !val.IsNil() {
print.go#L551: switch value.Kind() {
print.go#L592: if v := reflect.ValueOf(arg); v.Kind() == reflect.Pointer && v.IsNil() {
print.go#L777: switch f := value; value.Kind() {
print.go#L875: if f.Kind() == reflect.Slice || f.CanAddr() {
print.go#L892: if f.Kind() == reflect.Slice && f.IsNil() {
print.go#L918: switch a := f.Elem(); a.Kind() {
print.go#L940: switch v := reflect.ValueOf(a[argNum]); v.Kind() {
scan.go#L1020: if ptr.Kind() != reflect.Pointer {
scan.go#L1024: switch v := ptr.Elem(); v.Kind() {
github.com/oapi-codegen/runtime
bindform.go#L37: if ptrVal.Kind() != reflect.Struct {
bindform.go#L93: if ptrVal.Kind() != reflect.Struct {
bindform.go#L127: switch v.Kind() {
bindform.go#L290: switch v.Kind() {
internal/fmtsort
sort.go#L77: switch aVal.Kind() {
net/http
h2_bundle.go#L4595: if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |