reflect.Value.IsNil (method)
146 uses
reflect (current package)
deepequal.go#L53: return !v1.IsNil() && !v2.IsNil()
deepequal.go#L99: if v1.IsNil() != v2.IsNil() {
deepequal.go#L119: if v1.IsNil() || v2.IsNil() {
deepequal.go#L120: return v1.IsNil() == v2.IsNil()
deepequal.go#L136: if v1.IsNil() != v2.IsNil() {
deepequal.go#L155: if v1.IsNil() && v2.IsNil() {
value.go#L1311: if v.IsNil() {
value.go#L1334: if v.IsNil() {
value.go#L1544: func (v Value) IsNil() bool {
value.go#L1612: return v.IsNil()
value.go#L1809: if v.typ().Kind() == abi.Interface && v.IsNil() {
value.go#L3053: if v.Kind() == Interface && v.IsNil() {
value.go#L3135: return v.IsNil() || v.Elem().Comparable()
value.go#L3541: if v.IsNil() {
encoding/asn1
asn1.go#L1110: if v.Kind() != reflect.Pointer || v.IsNil() {
encoding/json
decode.go#L170: if rv.Kind() != reflect.Pointer || rv.IsNil() {
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#L476: if v.IsNil() {
decode.go#L643: if v.IsNil() {
decode.go#L706: if subv.IsNil() {
encode.go#L443: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L466: if va.IsNil() {
encode.go#L484: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L502: if va.IsNil() {
encode.go#L676: if v.IsNil() {
encode.go#L707: if fv.IsNil() {
encode.go#L746: if v.IsNil() {
encode.go#L805: if v.IsNil() {
encode.go#L824: if v.IsNil() {
encode.go#L885: if v.IsNil() {
encode.go#L964: if k.Kind() == reflect.Pointer && k.IsNil() {
encode.go#L1195: return v.IsNil() ||
encode.go#L1196: (v.Elem().Kind() == reflect.Pointer && v.Elem().IsNil()) ||
encode.go#L1202: return v.IsNil() || v.Interface().(isZeroer).IsZero()
fmt
print.go#L343: if val.Kind() == reflect.Interface && !val.IsNil() {
print.go#L592: if v := reflect.ValueOf(arg); v.Kind() == reflect.Pointer && v.IsNil() {
print.go#L808: if f.IsNil() {
print.go#L892: if f.Kind() == reflect.Slice && f.IsNil() {
github.com/google/go-cmp/cmp
compare.go#L287: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L420: if isSlice && (vx.IsNil() || vy.IsNil()) {
compare.go#L421: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L511: if vx.IsNil() || vy.IsNil() {
compare.go#L512: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L553: if vx.IsNil() || vy.IsNil() {
compare.go#L554: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L570: if vx.IsNil() || vy.IsNil() {
compare.go#L571: s.report(vx.IsNil() && vy.IsNil(), 0)
export.go#L25: if ve.Kind() == reflect.Interface && ve.IsNil() {
options.go#L161: if !function.IsType(v.Type(), function.ValueFilter) || v.IsNil() {
options.go#L290: if !function.IsType(v.Type(), function.Transformer) || v.IsNil() {
options.go#L357: if !function.IsType(v.Type(), function.Equal) || v.IsNil() {
report_reflect.go#L134: if (t.Kind() != reflect.Ptr && t.Kind() != reflect.Interface) || !v.IsNil() {
report_reflect.go#L210: if v.IsNil() {
report_reflect.go#L249: if v.IsNil() {
report_reflect.go#L280: if v.IsNil() {
report_reflect.go#L303: if v.IsNil() {
report_slices.go#L50: if t.Kind() == reflect.Interface && !vx.IsNil() && !vy.IsNil() && vx.Elem().Type() == vy.Elem().Type() {
go.uber.org/mock/gomock
matchers.go#L154: return v.IsNil()
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#L25: return !v.IsNil()
google.golang.org/protobuf/internal/descfmt
stringer.go#L317: if !rv.IsNil() {
stringer.go#L326: isZero = rv.IsNil()
google.golang.org/protobuf/internal/impl
codec_field.go#L56: if !vi.IsNil() && !vi.Elem().IsNil() && vi.Elem().Elem().Type() == ot {
codec_field.go#L74: if v.IsNil() {
codec_field.go#L78: if v.IsNil() {
codec_field.go#L145: if mp.IsNil() {
codec_field.go#L314: if mp.IsNil() {
codec_map.go#L61: if mp.Elem().IsNil() {
codec_map.go#L356: if dstm.IsNil() {
codec_map.go#L371: if dstm.IsNil() {
codec_map.go#L386: if dstm.IsNil() {
convert.go#L450: if !rv.IsNil() {
convert_list.go#L40: if rv.IsNil() {
convert_list.go#L108: if ls.v.IsNil() {
convert_list.go#L137: return !ls.v.IsNil()
convert_map.go#L117: return !ms.v.IsNil()
legacy_message.go#L501: if m.v.Kind() == reflect.Ptr && !m.v.IsNil() {
legacy_message.go#L560: return !m.v.IsNil()
merge.go#L168: if dm.IsNil() {
message_opaque.go#L171: if pv.IsNil() {
message_opaque.go#L179: if v.IsNil() {
message_opaque.go#L223: if pv.IsNil() {
message_opaque.go#L305: if val.IsNil() {
message_opaque.go#L376: if rv.IsNil() {
message_opaque.go#L380: if val.IsNil() {
message_opaque.go#L388: if rv.IsNil() {
message_opaque.go#L457: if rv.IsNil() {
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#L88: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L95: if rv.IsNil() || rv.Elem().Type().Elem() != ot {
message_reflect_field.go#L107: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L115: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L126: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L130: if rv.Kind() == reflect.Ptr && rv.IsNil() {
message_reflect_field.go#L179: if pv.IsNil() {
message_reflect_field.go#L186: if v.IsNil() {
message_reflect_field.go#L232: if pv.IsNil() {
message_reflect_field.go#L312: if rv.IsNil() {
message_reflect_field.go#L348: return !rv.IsNil()
message_reflect_field.go#L364: if fs.Type.Kind() == reflect.Ptr && rv.IsNil() {
message_reflect_field.go#L370: if fs.Type.Kind() == reflect.Ptr && rv.IsNil() {
message_reflect_field.go#L399: if rv.IsNil() { // valid on either *T or []byte
message_reflect_field.go#L412: if rv.IsNil() {
message_reflect_field.go#L416: if rv.IsNil() {
message_reflect_field_gen.go#L28: if rv.IsNil() {
gotest.tools/v3/assert/cmp
compare.go#L279: if value.IsNil() {
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#L144: if aVal.IsNil() {
sort.go#L145: if bVal.IsNil() {
sort.go#L150: if bVal.IsNil() {
net/http/httptrace
trace.go#L189: if of.IsNil() {
trace.go#L192: if tf.IsNil() {
text/template
exec.go#L337: truth = !val.IsNil()
exec.go#L432: if val.IsNil() {
exec.go#L908: if value.Kind() == reflect.Interface && !value.IsNil() {
exec.go#L1078: if v.IsNil() {
exec.go#L1093: if v.IsNil() {
funcs.go#L376: if len(ret) == 2 && !ret[1].IsNil() {
funcs.go#L453: return v.IsNil()
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)