reflect.Value.Kind (method)
131 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#L2632: switch v.Kind() {
value.go#L2640: panic(&ValueError{"reflect.Value.Clear", v.Kind()})
value.go#L2968: if v.Kind() != Pointer {
value.go#L3053: if v.Kind() == Interface && v.IsNil() {
value.go#L3117: k := v.Kind()
value.go#L3159: if v.Kind() == Interface {
value.go#L3162: if u.Kind() == Interface {
value.go#L3170: if v.Kind() != u.Kind() || v.Type() != u.Type() {
value.go#L3176: switch v.Kind() {
encoding/asn1
asn1.go#L886: switch val := v; val.Kind() {
asn1.go#L1010: if canHaveDefaultValue(v.Kind()) {
asn1.go#L1110: 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#L274: switch v.Kind() {
binary.go#L311: switch v.Kind() {
binary.go#L699: switch v.Kind() {
binary.go#L846: switch v.Kind() {
binary.go#L915: switch v.Kind() {
encoding/json
decode.go#L170: if rv.Kind() != reflect.Pointer || rv.IsNil() {
decode.go#L445: if v.Kind() != reflect.Pointer && v.Type().Name() != "" && v.CanAddr() {
decode.go#L452: if v.Kind() == reflect.Interface && !v.IsNil() {
decode.go#L454: if e.Kind() == reflect.Pointer && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Pointer) {
decode.go#L461: if v.Kind() != reflect.Pointer {
decode.go#L472: if v.Elem().Kind() == reflect.Interface && v.Elem().Elem().Equal(v) {
decode.go#L518: switch v.Kind() {
decode.go#L545: if v.Kind() == reflect.Slice {
decode.go#L580: if v.Kind() == reflect.Array {
decode.go#L588: if i == 0 && v.Kind() == reflect.Slice {
decode.go#L616: if v.Kind() == reflect.Interface && v.NumMethod() == 0 {
decode.go#L628: switch v.Kind() {
decode.go#L685: if v.Kind() == reflect.Map {
decode.go#L705: if subv.Kind() == reflect.Pointer {
decode.go#L769: if v.Kind() == reflect.Map {
decode.go#L899: switch v.Kind() {
decode.go#L912: switch v.Kind() {
decode.go#L937: switch v.Kind() {
decode.go#L973: switch v.Kind() {
decode.go#L975: if v.Kind() == reflect.String && v.Type() == numberType {
encode.go#L319: switch v.Kind() {
encode.go#L443: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L484: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L706: if fv.Kind() == reflect.Pointer {
encode.go#L960: if k.Kind() == reflect.String {
encode.go#L964: if k.Kind() == reflect.Pointer && k.IsNil() {
encode.go#L970: switch k.Kind() {
encode.go#L1196: (v.Elem().Kind() == reflect.Pointer && v.Elem().IsNil()) ||
flag
flag.go#L303: if ptrVal.Kind() != reflect.Ptr {
flag.go#L307: if defVal.Kind() == reflect.Ptr {
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/google/go-cmp/cmp
export.go#L25: if ve.Kind() == reflect.Interface && ve.IsNil() {
report_reflect.go#L310: panic(fmt.Sprintf("%v kind not handled", v.Kind()))
github.com/google/go-cmp/cmp/internal/value
sort.go#L90: return vx.Kind() < vy.Kind()
go.uber.org/mock/gomock
call.go#L463: if t.Kind() != reflect.Ptr && t.Kind() != reflect.Interface {
matchers.go#L151: switch v.Kind() {
matchers.go#L255: switch v.Kind() {
matchers.go#L319: switch xValue.Kind() {
go.uber.org/zap/zapcore
error.go#L54: if v := reflect.ValueOf(err); v.Kind() == reflect.Ptr && v.IsNil() {
field.go#L222: if v := reflect.ValueOf(stringer); v.Kind() == reflect.Ptr && v.IsNil() {
go/ast
print.go#L23: switch v.Kind() {
print.go#L149: switch x.Kind() {
golang.org/x/net/http2
server.go#L760: if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {
google.golang.org/protobuf/internal/descfmt
stringer.go#L309: if v.Kind() == reflect.Struct && !rv.IsValid() {
stringer.go#L324: switch rv.Kind() {
google.golang.org/protobuf/internal/impl
codec_map.go#L299: switch keys[i].Kind() {
codec_map.go#L311: panic("invalid kind: " + keys[i].Kind().String())
legacy_message.go#L501: if m.v.Kind() == reflect.Ptr && !m.v.IsNil() {
legacy_message.go#L559: if m.v.Kind() == reflect.Ptr {
message_opaque.go#L429: switch rv.Kind() {
message_opaque.go#L464: if nullable && rv.Kind() == reflect.Slice && rv.IsNil() {
message_reflect.go#L417: if rv.Kind() == reflect.Ptr && !rv.IsNil() {
message_reflect_field.go#L130: if rv.Kind() == reflect.Ptr && rv.IsNil() {
message_reflect_field.go#L288: switch rv.Kind() {
message_reflect_field.go#L311: if nullable && rv.Kind() == reflect.Ptr {
gotest.tools/v3/internal/assert
assert.go#L111: if v.Kind() == reflect.Ptr && v.IsNil() {
html/template
content.go#L124: for v.Kind() == reflect.Pointer && !v.IsNil() {
content.go#L143: for !v.Type().Implements(fmtStringerType) && !v.Type().Implements(errorType) && v.Kind() == reflect.Pointer && !v.IsNil() {
js.go#L142: for !v.Type().Implements(jsonMarshalType) && v.Kind() == reflect.Pointer && !v.IsNil() {
internal/fmtsort
sort.go#L77: switch aVal.Kind() {
net/http
h2_bundle.go#L4810: if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {
text/template
exec.go#L329: switch val.Kind() {
exec.go#L397: switch val.Kind() {
exec.go#L534: if value.Kind() == reflect.Interface && value.Type().NumMethod() == 0 {
exec.go#L691: if receiver.Kind() == reflect.Interface && isNil {
exec.go#L701: if ptr.Kind() != reflect.Interface && ptr.Kind() != reflect.Pointer && ptr.CanAddr() {
exec.go#L709: switch receiver.Kind() {
exec.go#L908: if value.Kind() == reflect.Interface && !value.IsNil() {
exec.go#L920: case value.Kind() == reflect.Pointer && value.Type().Elem().AssignableTo(typ):
exec.go#L1077: for ; v.Kind() == reflect.Pointer || v.Kind() == reflect.Interface; v = v.Elem() {
exec.go#L1090: if v.Kind() != reflect.Interface {
exec.go#L1116: if v.Kind() == reflect.Pointer {
exec.go#L1127: switch v.Kind() {
funcs.go#L93: if v.Kind() != reflect.Func {
funcs.go#L170: if intLike(value.Kind()) && intLike(argType.Kind()) && value.Type().ConvertibleTo(argType) {
funcs.go#L190: switch index.Kind() {
funcs.go#L222: switch item.Kind() {
funcs.go#L264: switch item.Kind() {
funcs.go#L306: switch item.Kind() {
funcs.go#L429: switch v.Kind() {
funcs.go#L451: switch v.Kind() {
funcs.go#L461: k1 := v1.Kind()
funcs.go#L462: k2 := v2.Kind()
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)