reflect.Value.IsNil (method)

143 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#L1317: 				if v.IsNil() {
		value.go#L1340: 				if v.IsNil() {
		value.go#L1632: func (v Value) IsNil() bool {
		value.go#L1703: 		return v.IsNil()
		value.go#L1906: 	if v.typ().Kind() == abi.Interface && v.IsNil() {
		value.go#L3196: 		if v.Kind() == Interface && v.IsNil() {
		value.go#L3278: 		return v.IsNil() || v.Elem().Comparable()
		value.go#L3684: 	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#L696: 	if v.IsNil() {
		encode.go#L727: 				if fv.IsNil() {
		encode.go#L766: 	if v.IsNil() {
		encode.go#L825: 	if v.IsNil() {
		encode.go#L844: 	if v.IsNil() {
		encode.go#L905: 	if v.IsNil() {
		encode.go#L984: 		if k.Kind() == reflect.Pointer && k.IsNil() {
		encode.go#L1199: 								return v.IsNil() ||
		encode.go#L1200: 									(v.Elem().Kind() == reflect.Pointer && v.Elem().IsNil()) ||
		encode.go#L1206: 								return v.IsNil() || v.Interface().(isZeroer).IsZero()

	encoding/xml
		marshal.go#L437: 		if val.IsNil() {
		marshal.go#L540: 		if fv.Kind() == reflect.Interface && fv.IsNil() {
		marshal.go#L642: 		if val.IsNil() {
		marshal.go#L837: 		if vf.IsNil() {
		marshal.go#L989: 				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#L344: 	if val.Kind() == reflect.Interface && !val.IsNil() {
		read.go#L346: 		if e.Kind() == reflect.Pointer && !e.IsNil() {
		read.go#L352: 		if val.IsNil() {
		read.go#L640: 		if dst.IsNil() {
		typeinfo.go#L355: 				if v.IsNil() {

	fmt
		print.go#L344: 	if val.Kind() == reflect.Interface && !val.IsNil() {
		print.go#L593: 		if v := reflect.ValueOf(arg); v.Kind() == reflect.Pointer && v.IsNil() {
		print.go#L809: 			if f.IsNil() {
		print.go#L893: 			if f.Kind() == reflect.Slice && f.IsNil() {

	github.com/jackc/pgx/v5
		named_args.go#L83: 		if v.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#L569: 		if dstValue.IsNil() {
		pgtype.go#L916: 	if targetValue.IsNil() {
		pgtype.go#L1356: 	if ptr.IsNil() {
		pgtype.go#L2049: 		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#L362: 	if dstm.IsNil() {
		codec_map.go#L377: 	if dstm.IsNil() {
		codec_map.go#L392: 	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#L367: 	if len(ret) == 2 && !ret[1].IsNil() {
		funcs.go#L443: 		return v.IsNil()