reflect.Value.Kind (method)
77 uses
reflect (current package)
deepequal.go#L40: switch v1.Kind() {
deepequal.go#L64: switch v.Kind() {
deepequal.go#L90: switch v1.Kind() {
swapper.go#L20: if v.Kind() != Slice {
swapper.go#L21: panic(&ValueError{Method: "Swapper", Kind: v.Kind()})
value.go#L446: 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#L1638: panic(&ValueError{"reflect.Value.IsZero", v.Kind()})
value.go#L1692: panic(&ValueError{"reflect.Value.SetZero", v.Kind()})
value.go#L1698: func (v Value) Kind() Kind {
value.go#L2862: switch v.Kind() {
value.go#L2870: panic(&ValueError{"reflect.Value.Clear", v.Kind()})
value.go#L3187: if v.Kind() != Pointer {
value.go#L3288: if v.Kind() == Interface && v.IsNil() {
value.go#L3352: k := v.Kind()
value.go#L3394: if v.Kind() == Interface {
value.go#L3397: if u.Kind() == Interface {
value.go#L3405: if v.Kind() != u.Kind() || v.Type() != u.Type() {
value.go#L3411: switch v.Kind() {
encoding/asn1
asn1.go#L892: switch val := v; val.Kind() {
asn1.go#L1016: if canHaveDefaultValue(v.Kind()) {
asn1.go#L1117: 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#L316: switch v.Kind() {
binary.go#L477: switch v.Kind() {
binary.go#L615: switch v.Kind() {
binary.go#L684: 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#L890: switch v.Kind() {
decode.go#L903: switch v.Kind() {
decode.go#L928: switch v.Kind() {
decode.go#L964: switch v.Kind() {
decode.go#L966: if v.Kind() == reflect.String && v.Type() == numberType {
encode.go#L305: switch v.Kind() {
encode.go#L433: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L474: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L686: if fv.Kind() == reflect.Pointer {
encode.go#L940: if w.k.Kind() == reflect.String {
encode.go#L945: if w.k.Kind() == reflect.Pointer && w.k.IsNil() {
encode.go#L952: switch w.k.Kind() {
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 {
print.go#L894: if f.Kind() == reflect.Slice && f.IsNil() {
print.go#L920: switch a := f.Elem(); a.Kind() {
print.go#L942: 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.uber.org/zap/zapcore
error.go#L55: 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() {
internal/fmtsort
sort.go#L83: switch aVal.Kind() {
net/http
h2_bundle.go#L4536: if rv := reflect.ValueOf(v); rv.Kind() == reflect.Uintptr {
![]() |
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |