reflect.Value.IsNil (method)
142 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#L1300: if v.IsNil() {
value.go#L1323: if v.IsNil() {
value.go#L1605: func (v Value) IsNil() bool {
value.go#L1676: return v.IsNil()
value.go#L1879: if v.typ().Kind() == abi.Interface && v.IsNil() {
value.go#L3127: if v.Kind() == Interface && v.IsNil() {
value.go#L3209: return v.IsNil() || v.Elem().Comparable()
value.go#L3615: if v.IsNil() {
database/sql
convert.go#L401: if dpv.IsNil() {
convert.go#L555: rv.IsNil() &&
database/sql/driver
types.go#L234: rv.IsNil() &&
types.go#L266: if rv.IsNil() {
encoding/asn1
asn1.go#L1165: if v.Kind() != reflect.Pointer || v.IsNil() {
encoding/json
decode.go#L175: if rv.Kind() != reflect.Pointer || rv.IsNil() {
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#L481: if v.IsNil() {
decode.go#L648: if v.IsNil() {
decode.go#L711: if subv.IsNil() {
encode.go#L474: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L497: if va.IsNil() {
encode.go#L515: if v.Kind() == reflect.Pointer && v.IsNil() {
encode.go#L533: if va.IsNil() {
encode.go#L707: if v.IsNil() {
encode.go#L738: if fv.IsNil() {
encode.go#L777: if v.IsNil() {
encode.go#L836: if v.IsNil() {
encode.go#L855: if v.IsNil() {
encode.go#L916: if v.IsNil() {
encode.go#L995: if k.Kind() == reflect.Pointer && k.IsNil() {
encode.go#L1223: return v.IsNil() ||
encode.go#L1224: (v.Elem().Kind() == reflect.Pointer && v.Elem().IsNil()) ||
encode.go#L1230: return v.IsNil() || v.Interface().(isZeroer).IsZero()
encoding/xml
marshal.go#L443: if val.IsNil() {
marshal.go#L538: if fv.Kind() == reflect.Interface && fv.IsNil() {
marshal.go#L632: if val.IsNil() {
marshal.go#L826: if vf.IsNil() {
marshal.go#L974: if vf.Kind() != reflect.Pointer && vf.Kind() != reflect.Interface || !vf.IsNil() {
read.go#L153: if val.IsNil() {
read.go#L253: if val.IsNil() {
read.go#L341: if val.Kind() == reflect.Interface && !val.IsNil() {
read.go#L343: if e.Kind() == reflect.Pointer && !e.IsNil() {
read.go#L349: if val.IsNil() {
read.go#L625: if dst.IsNil() {
typeinfo.go#L355: if v.IsNil() {
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/jackc/pgx/v5/pgtype
builtin_wrappers.go#L752: if a.slice.IsNil() {
builtin_wrappers.go#L795: if a.slice.IsNil() {
json.go#L215: if v.Kind() != reflect.Pointer || v.IsNil() {
pgtype.go#L567: if dstValue.IsNil() {
pgtype.go#L914: if targetValue.IsNil() {
pgtype.go#L1355: if ptr.IsNil() {
pgtype.go#L2032: if !refVal.IsNil() {
go.uber.org/mock/gomock
matchers.go#L154: return v.IsNil()
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() {
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#L172: if pv.IsNil() {
message_opaque.go#L180: if v.IsNil() {
message_opaque.go#L224: if pv.IsNil() {
message_opaque.go#L306: if val.IsNil() {
message_opaque.go#L348: if rv.IsNil() {
message_opaque.go#L355: if !rv.IsNil() {
message_opaque.go#L364: if rv.IsNil() {
message_opaque.go#L374: if rv.IsNil() {
message_opaque.go#L378: if val.IsNil() {
message_opaque.go#L386: if rv.IsNil() {
message_opaque.go#L455: if rv.IsNil() {
message_opaque.go#L462: 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() {
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() {
log/slog
handler.go#L593: if v := reflect.ValueOf(v.any); v.Kind() == reflect.Pointer && v.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#L452: return v.IsNil()
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)