reflect.Value.IsNil (method)
243 uses
reflect (current package)
deepequal.go#L50: return !v1.IsNil() && !v2.IsNil()
deepequal.go#L96: if v1.IsNil() != v2.IsNil() {
deepequal.go#L112: if v1.IsNil() || v2.IsNil() {
deepequal.go#L113: return v1.IsNil() == v2.IsNil()
deepequal.go#L129: if v1.IsNil() != v2.IsNil() {
deepequal.go#L147: if v1.IsNil() && v2.IsNil() {
value.go#L888: if v.IsNil() {
value.go#L1069: func (v Value) IsNil() bool {
value.go#L1121: return v.IsNil()
value.go#L1327: if v.typ.Kind() == Interface && v.IsNil() {
value.go#L2435: if v.Kind() == Interface && v.IsNil() {
value.go#L2749: if v.IsNil() {
database/sql
convert.go#L392: if dpv.IsNil() {
convert.go#L555: rv.IsNil() &&
database/sql/driver
types.go#L229: rv.IsNil() &&
types.go#L261: if rv.IsNil() {
encoding/asn1
asn1.go#L1114: if v.Kind() != reflect.Ptr || v.IsNil() {
encoding/gob
decode.go#L232: if v.IsNil() {
decode.go#L561: if value.IsNil() {
decoder.go#L199: if v.Kind() == reflect.Ptr && !v.IsNil() {
encode.go#L165: if pv.IsNil() {
encode.go#L283: return !v.IsNil()
encode.go#L389: if elem.Kind() == reflect.Ptr && elem.IsNil() {
encode.go#L395: if iv.IsNil() {
encode.go#L450: return val.IsNil()
encode.go#L567: if !state.sendZero && mv.IsNil() {
encode.go#L585: if !state.sendZero && (!iv.IsValid() || iv.IsNil()) {
encoder.go#L222: if value.Kind() == reflect.Ptr && value.IsNil() {
encoding/json
decode.go#L172: if rv.Kind() != reflect.Ptr || rv.IsNil() {
decode.go#L447: if v.Kind() == reflect.Interface && !v.IsNil() {
decode.go#L449: if e.Kind() == reflect.Ptr && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Ptr) {
decode.go#L471: if v.IsNil() {
decode.go#L647: if v.IsNil() {
decode.go#L715: if subv.IsNil() {
encode.go#L354: return v.IsNil()
encode.go#L470: if v.Kind() == reflect.Ptr && v.IsNil() {
encode.go#L491: if va.IsNil() {
encode.go#L507: if v.Kind() == reflect.Ptr && v.IsNil() {
encode.go#L525: if va.IsNil() {
encode.go#L712: if v.IsNil() {
encode.go#L742: if fv.IsNil() {
encode.go#L780: if v.IsNil() {
encode.go#L834: if v.IsNil() {
encode.go#L869: if v.IsNil() {
encode.go#L930: if v.IsNil() {
encode.go#L1010: if w.v.Kind() == reflect.Ptr && w.v.IsNil() {
encoding/xml
marshal.go#L424: if val.IsNil() {
marshal.go#L515: if fv.Kind() == reflect.Interface && fv.IsNil() {
marshal.go#L603: if val.IsNil() {
marshal.go#L797: if vf.IsNil() {
marshal.go#L945: if vf.Kind() != reflect.Ptr && vf.Kind() != reflect.Interface || !vf.IsNil() {
marshal.go#L1055: return v.IsNil()
read.go#L248: if val.IsNil() {
read.go#L325: if val.Kind() == reflect.Interface && !val.IsNil() {
read.go#L327: if e.Kind() == reflect.Ptr && !e.IsNil() {
read.go#L333: if val.IsNil() {
read.go#L606: if dst.IsNil() {
typeinfo.go#L362: if v.IsNil() {
fmt
print.go#L292: if val.Kind() == reflect.Interface && !val.IsNil() {
print.go#L541: if v := reflect.ValueOf(arg); v.Kind() == reflect.Ptr && v.IsNil() {
print.go#L761: if f.IsNil() {
print.go#L847: if f.Kind() == reflect.Slice && f.IsNil() {
github.com/aws/aws-sdk-go/aws/awsutil
copy.go#L52: if dst.CanSet() && !src.IsNil() {
copy.go#L78: if src.IsNil() {
copy.go#L88: if src.IsNil() {
path_value.go#L80: if !value.IsNil() {
path_value.go#L86: if createPath && value.Kind() == reflect.Ptr && value.IsNil() {
path_value.go#L96: if !createPath && value.IsNil() {
path_value.go#L139: if !createPath && value.IsNil() {
path_value.go#L165: if !v.IsValid() || (v.Kind() == reflect.Ptr && v.IsNil()) {
path_value.go#L190: if rval.Kind() == reflect.Ptr && rval.IsNil() {
path_value.go#L211: if srcVal.IsNil() {
prettify.go#L45: if (f.Kind() == reflect.Ptr || f.Kind() == reflect.Slice || f.Kind() == reflect.Map) && f.IsNil() {
string_value.go#L33: if (fv.Kind() == reflect.Ptr || fv.Kind() == reflect.Slice) && fv.IsNil() {
github.com/aws/aws-sdk-go/private/protocol
idempotency.go#L45: if v.IsNil() && v.CanSet() {
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
build.go#L121: if (member.Kind() == reflect.Ptr || member.Kind() == reflect.Slice || member.Kind() == reflect.Map) && member.IsNil() {
build.go#L231: if !value.IsNil() {
unmarshal.go#L133: if value.IsNil() { // create the structure if it's nil
unmarshal.go#L189: if value.IsNil() {
unmarshal.go#L213: if value.IsNil() {
github.com/aws/aws-sdk-go/private/protocol/query/queryutil
queryutil.go#L119: if !value.IsNil() && value.Len() == 0 {
queryutil.go#L153: if !value.IsNil() && value.Len() == 0 {
queryutil.go#L221: if !r.IsNil() {
github.com/aws/aws-sdk-go/private/protocol/rest
payload.go#L23: if payload.IsValid() || (payload.Kind() == reflect.Ptr && !payload.IsNil()) {
github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
build.go#L181: if value.IsNil() { // don't build omitted lists
build.go#L223: if value.IsNil() { // don't build omitted maps
build.go#L282: if !value.IsNil() {
unmarshal.go#L118: if r.IsNil() { // create the structure if it's nil
unmarshal.go#L180: if r.IsNil() {
unmarshal.go#L192: if r.IsNil() {
unmarshal.go#L210: if r.IsNil() {
github.com/ghodss/yaml
fields.go#L32: if v.Kind() == reflect.Interface && !v.IsNil() {
fields.go#L34: if e.Kind() == reflect.Ptr && !e.IsNil() && (!decodingNull || e.Elem().Kind() == reflect.Ptr) {
fields.go#L47: if v.IsNil() {
github.com/go-git/gcfg
set.go#L241: if vSect.IsNil() {
set.go#L283: if vVar.IsNil() {
set.go#L298: isNew := isDeref && vVal.IsNil()
github.com/go-redis/redis/v8/internal/proto
scan.go#L144: if elem.IsNil() {
github.com/golang/protobuf/proto
extensions.go#L234: if rv.IsNil() {
github.com/google/go-cmp/cmp
compare.go#L284: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L381: if v.Kind() == reflect.Interface && v.IsNil() && v.Type() != t {
compare.go#L433: if isSlice && (vx.IsNil() || vy.IsNil()) {
compare.go#L434: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L524: if vx.IsNil() || vy.IsNil() {
compare.go#L525: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L566: if vx.IsNil() || vy.IsNil() {
compare.go#L567: s.report(vx.IsNil() && vy.IsNil(), 0)
compare.go#L583: if vx.IsNil() || vy.IsNil() {
compare.go#L584: s.report(vx.IsNil() && vy.IsNil(), 0)
export_unsafe.go#L29: if ve.Kind() == reflect.Interface && ve.IsNil() {
options.go#L159: if !function.IsType(v.Type(), function.ValueFilter) || v.IsNil() {
options.go#L277: if !function.IsType(v.Type(), function.Transformer) || v.IsNil() {
options.go#L344: if !function.IsType(v.Type(), function.Equal) || v.IsNil() {
report_reflect.go#L127: if (t.Kind() != reflect.Ptr && t.Kind() != reflect.Interface) || !v.IsNil() {
report_reflect.go#L203: if v.IsNil() {
report_reflect.go#L241: if v.IsNil() {
report_reflect.go#L272: if v.IsNil() {
report_reflect.go#L290: if v.IsNil() {
github.com/google/go-cmp/cmp/cmpopts
ignore.go#L157: if !function.IsType(vf.Type(), function.ValuePredicate) || vf.IsNil() {
ignore.go#L185: if !function.IsType(vf.Type(), function.KeyValuePredicate) || vf.IsNil() {
sort.go#L31: if !function.IsType(vf.Type(), function.Less) || vf.IsNil() {
sort.go#L102: if !function.IsType(vf.Type(), function.Less) || vf.IsNil() {
github.com/google/go-cmp/cmp/internal/value
zero.go#L31: return v.IsNil()
github.com/google/safehtml/internal/safehtmlutil
safehtmlutil.go#L159: for !v.Type().Implements(fmtStringerType) && !v.Type().Implements(errorType) && v.Kind() == reflect.Ptr && !v.IsNil() {
safehtmlutil.go#L176: for v.Kind() == reflect.Ptr && !v.IsNil() {
github.com/google/safehtml/template
escape.go#L813: for !v.Type().Implements(fmtStringerType) && !v.Type().Implements(errorType) && v.Kind() == reflect.Ptr && !v.IsNil() {
github.com/imdario/mergo
map.go#L66: if dst.IsNil() {
merge.go#L133: if dst.IsNil() && !src.IsNil() {
merge.go#L199: if dst.IsNil() || overwrite {
merge.go#L212: if dst.IsNil() || (src.Kind() != reflect.Ptr && overwrite) {
merge.go#L230: if dst.IsNil() || overwrite {
merge.go#L334: return v.IsNil()
mergo.go#L49: if v.IsNil() {
mergo.go#L54: return v.IsNil()
github.com/jackc/pgtype
array_type.go#L64: if sliceVal.IsNil() {
composite_type.go#L188: if dstValue.IsNil() {
convert.go#L21: if refVal.IsNil() {
convert.go#L76: if refVal.IsNil() {
convert.go#L95: if refVal.IsNil() {
convert.go#L116: if refVal.IsNil() {
convert.go#L135: if refVal.IsNil() {
convert.go#L151: if refVal.IsNil() {
convert.go#L172: if refVal.IsNil() {
convert.go#L193: if refVal.IsNil() {
convert.go#L288: if el.IsNil() {
convert.go#L340: if el.IsNil() {
github.com/jackc/pgx/v4
extended_query_builder.go#L73: if argIsPtr && refVal.IsNil() {
go_stdlib.go#L56: rv.IsNil() &&
values.go#L33: if refVal.Kind() == reflect.Ptr && refVal.IsNil() {
values.go#L181: if refVal.IsNil() {
github.com/jmespath/go-jmespath
interpreter.go#L329: if rv.IsNil() {
util.go#L36: if rv.IsNil() {
github.com/lib/pq
array.go#L315: case dpv.IsNil():
array.go#L405: if rv.IsNil() {
github.com/Masterminds/squirrel
expr.go#L175: if r.IsNil() {
go/ast
print.go#L25: return !v.IsNil()
golang.org/x/pkgsite/internal/database
reflect.go#L119: if n.ptr.Elem().IsNil() {
golang.org/x/xerrors
wrap.go#L86: if typ.Kind() != reflect.Ptr || val.IsNil() {
google.golang.org/api/internal/gensupport
json.go#L102: if f.Type.Kind() == reflect.Map && v.IsNil() {
json.go#L108: if f.Type.Kind() == reflect.Slice && v.IsNil() {
json.go#L124: if kind == reflect.Ptr && !v.IsNil() {
json.go#L176: if f.Type.Kind() == reflect.Ptr && v.IsNil() {
json.go#L183: if f.Type.Kind() == reflect.Interface && v.IsNil() {
json.go#L208: return v.IsNil()
google.golang.org/protobuf/internal/descfmt
stringer.go#L219: if !rv.IsNil() {
stringer.go#L228: isZero = rv.IsNil()
google.golang.org/protobuf/internal/impl
codec_field.go#L57: if !vi.IsNil() && !vi.Elem().IsNil() && vi.Elem().Elem().Type() == ot {
codec_field.go#L72: if v.IsNil() {
codec_field.go#L76: if v.IsNil() {
codec_field.go#L215: if mp.IsNil() {
codec_field.go#L371: if mp.IsNil() {
codec_map.go#L61: if mp.Elem().IsNil() {
codec_map.go#L346: if dstm.IsNil() {
codec_map.go#L361: if dstm.IsNil() {
codec_map.go#L376: if dstm.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()
merge.go#L141: if dm.IsNil() {
message_reflect_field.go#L58: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L65: if rv.IsNil() || rv.Elem().Type().Elem() != ot {
message_reflect_field.go#L77: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L85: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L96: if rv.IsNil() || rv.Elem().Type().Elem() != ot || rv.Elem().IsNil() {
message_reflect_field.go#L100: if rv.IsNil() {
message_reflect_field.go#L149: if pv.IsNil() {
message_reflect_field.go#L156: if v.IsNil() {
message_reflect_field.go#L202: if pv.IsNil() {
message_reflect_field.go#L246: return !rv.IsNil()
message_reflect_field.go#L273: if rv.IsNil() {
message_reflect_field.go#L285: if rv.IsNil() {
message_reflect_field.go#L391: return !rv.IsNil()
message_reflect_field.go#L407: if rv.IsNil() {
message_reflect_field.go#L413: if rv.IsNil() {
message_reflect_field.go#L442: if rv.IsNil() { // valid on either *T or []byte
message_reflect_field.go#L455: if rv.IsNil() {
message_reflect_field.go#L459: if rv.IsNil() {
gopkg.in/yaml.v2
decode.go#L305: if out.IsNil() {
decode.go#L657: if out.IsNil() {
decode.go#L769: if inlineMap.IsNil() {
encode.go#L99: if !in.IsValid() || in.Kind() == reflect.Ptr && in.IsNil() {
sorter.go#L17: for (ak == reflect.Interface || ak == reflect.Ptr) && !a.IsNil() {
sorter.go#L21: for (bk == reflect.Interface || bk == reflect.Ptr) && !b.IsNil() {
yaml.go#L127: if out.Kind() == reflect.Ptr && !out.IsNil() {
yaml.go#L145: if v.Kind() == reflect.Ptr && !v.IsNil() {
yaml.go#L431: if (kind == reflect.Ptr || kind == reflect.Interface) && v.IsNil() {
yaml.go#L440: return v.IsNil()
html/template
content.go#L124: for v.Kind() == reflect.Ptr && !v.IsNil() {
content.go#L143: for !v.Type().Implements(fmtStringerType) && !v.Type().Implements(errorType) && v.Kind() == reflect.Ptr && !v.IsNil() {
js.go#L135: for !v.Type().Implements(jsonMarshalType) && v.Kind() == reflect.Ptr && !v.IsNil() {
internal/fmtsort
sort.go#L191: if aVal.IsNil() {
sort.go#L192: if bVal.IsNil() {
sort.go#L197: if bVal.IsNil() {
net/http/httptrace
trace.go#L189: if of.IsNil() {
trace.go#L192: if tf.IsNil() {
text/template
exec.go#L321: truth = !val.IsNil()
exec.go#L373: if val.IsNil() {
exec.go#L766: if value.Kind() == reflect.Interface && !value.IsNil() {
exec.go#L936: if v.IsNil() {
exec.go#L951: if v.IsNil() {
funcs.go#L366: if len(ret) == 2 && !ret[1].IsNil() {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |