reflect.Value.Kind (method)
78 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#L436: if x.Kind() == Invalid {
value.go#L1316: if v.Kind() == Pointer && v.typ().Elem().Kind() == abi.Struct {
value.go#L1339: if v.Kind() == Ptr && v.typ().Elem().Kind() == abi.Struct {
value.go#L1735: panic(&ValueError{"reflect.Value.IsZero", v.Kind()})
value.go#L1838: panic(&ValueError{"reflect.Value.SetZero", v.Kind()})
value.go#L1844: func (v Value) Kind() Kind {
value.go#L2775: switch v.Kind() {
value.go#L2783: panic(&ValueError{"reflect.Value.Clear", v.Kind()})
value.go#L3111: if v.Kind() != Pointer {
value.go#L3196: if v.Kind() == Interface && v.IsNil() {
value.go#L3260: k := v.Kind()
value.go#L3302: if v.Kind() == Interface {
value.go#L3305: if u.Kind() == Interface {
value.go#L3313: if v.Kind() != u.Kind() || v.Type() != u.Type() {
value.go#L3319: switch v.Kind() {
encoding/asn1
asn1.go#L934: switch val := v; val.Kind() {
asn1.go#L1058: if canHaveDefaultValue(v.Kind()) {
asn1.go#L1165: if v.Kind() != reflect.Pointer || v.IsNil() {
marshal.go#L479: switch v := value; v.Kind() {
marshal.go#L584: if v.Kind() == reflect.Interface && v.Type().NumMethod() == 0 {
marshal.go#L588: if v.Kind() == reflect.Slice && v.Len() == 0 && params.omitEmpty {
marshal.go#L592: 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#L175: if rv.Kind() != reflect.Pointer || rv.IsNil() {
decode.go#L450: if v.Kind() != reflect.Pointer && v.Type().Name() != "" && v.CanAddr() {
decode.go#L457: if v.Kind() == reflect.Interface && !v.IsNil() {
decode.go#L459: if e.Kind() == reflect.Pointer && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Pointer) {
decode.go#L466: if v.Kind() != reflect.Pointer {
decode.go#L477: if v.Elem().Kind() == reflect.Interface && v.Elem().Elem().Equal(v) {
decode.go#L523: switch v.Kind() {
decode.go#L550: if v.Kind() == reflect.Slice {
decode.go#L585: if v.Kind() == reflect.Array {
decode.go#L593: if i == 0 && v.Kind() == reflect.Slice {
decode.go#L621: if v.Kind() == reflect.Interface && v.NumMethod() == 0 {
decode.go#L633: switch v.Kind() {
decode.go#L690: if v.Kind() == reflect.Map {
decode.go#L710: if subv.Kind() == reflect.Pointer {
decode.go#L774: if v.Kind() == reflect.Map {
decode.go#L904: switch v.Kind() {
decode.go#L917: switch v.Kind() {
decode.go#L942: switch v.Kind() {
decode.go#L978: switch v.Kind() {
decode.go#L980: if v.Kind() == reflect.String && v.Type() == numberType {
encode.go#L353: switch v.Kind() {
encode.go#L474: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L515: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L726: if fv.Kind() == reflect.Pointer {
encode.go#L980: if k.Kind() == reflect.String {
encode.go#L984: if k.Kind() == reflect.Pointer && k.IsNil() {
encode.go#L990: switch k.Kind() {
encode.go#L1200: (v.Elem().Kind() == reflect.Pointer && v.Elem().IsNil()) ||
fmt
print.go#L344: if val.Kind() == reflect.Interface && !val.IsNil() {
print.go#L552: switch value.Kind() {
print.go#L593: if v := reflect.ValueOf(arg); v.Kind() == reflect.Pointer && v.IsNil() {
print.go#L778: switch f := value; value.Kind() {
print.go#L876: if f.Kind() == reflect.Slice || f.CanAddr() {
print.go#L893: if f.Kind() == reflect.Slice && f.IsNil() {
print.go#L919: switch a := f.Elem(); a.Kind() {
print.go#L941: 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/gotd/td/tdp
tdp.go#L33: switch v.Kind() {
go.opentelemetry.io/otel/attribute
value.go#L270: if !rv.IsValid() || rv.Kind() != reflect.Array || rv.Type().Elem() != reflect.TypeFor[Value]() {
go.opentelemetry.io/otel/attribute/internal
attribute.go#L67: if !rv.IsValid() || rv.Kind() != reflect.Array || rv.Type().Elem() != reflect.TypeFor[T]() {
internal/fmtsort
sort.go#L77: switch aVal.Kind() {
net/http
h2_bundle.go#L4743: if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {
![]() |
The pages are generated with Golds v0.8.4. (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. |