reflect.Value.IsValid (method)

193 uses

	reflect (current package)
		deepequal.go#L25: 	if !v1.IsValid() || !v2.IsValid() {
		deepequal.go#L26: 		return v1.IsValid() == v2.IsValid()
		deepequal.go#L141: 			if !val1.IsValid() || !val2.IsValid() || !deepValueEqual(val1, val2, visited) {
		value.go#L1094: func (v Value) IsValid() bool {
		value.go#L2212: 			if c.Chan.IsValid() {
		value.go#L2215: 			if c.Send.IsValid() {
		value.go#L2221: 			if !ch.IsValid() {
		value.go#L2233: 			if !v.IsValid() {
		value.go#L2245: 			if c.Send.IsValid() {
		value.go#L2249: 			if !ch.IsValid() {

	cloud.google.com/go/storage
		storage.go#L1515: 	if !m.IsValid() {

	database/sql
		convert.go#L396: 	if !sv.IsValid() {
		convert.go#L401: 	if sv.IsValid() && sv.Type().AssignableTo(dv.Type()) {

	encoding/asn1
		marshal.go#L580: 	if !v.IsValid() {

	encoding/gob
		decode.go#L1184: 	if !value.IsValid() {
		decoder.go#L198: 	if v.IsValid() {
		encode.go#L357: 	for i := 0; i < indir && v.IsValid(); i++ {
		encode.go#L360: 	if !v.IsValid() {
		encode.go#L585: 				if !state.sendZero && (!iv.IsValid() || iv.IsNil()) {

	encoding/json
		decode.go#L359: 		if v.IsValid() {
		decode.go#L369: 		if v.IsValid() {
		decode.go#L383: 		if v.IsValid() {
		decode.go#L688: 			if !mapElem.IsValid() {
		decode.go#L806: 			if kv.IsValid() {
		encode.go#L375: 	if !v.IsValid() {

	encoding/xml
		marshal.go#L413: 	if !val.IsValid() {
		marshal.go#L813: 		if !vf.IsValid() {
		read.go#L480: 				if !saveData.IsValid() {
		read.go#L485: 				if !saveComment.IsValid() {
		read.go#L490: 				if !saveAny.IsValid() {
		read.go#L495: 				if !saveXML.IsValid() {
		read.go#L513: 		if saveXML.IsValid() {
		read.go#L523: 			if sv.IsValid() {
		read.go#L528: 				if !consumed && saveAny.IsValid() {
		read.go#L542: 			if saveXML.IsValid() {
		read.go#L551: 			if saveData.IsValid() {
		read.go#L556: 			if saveComment.IsValid() {
		read.go#L562: 	if saveData.IsValid() && saveData.CanInterface() && saveData.Type().Implements(textUnmarshalerType) {
		read.go#L569: 	if saveData.IsValid() && saveData.CanAddr() {

	fmt
		print.go#L321: 	if !v.IsValid() {
		print.go#L340: 	case p.value.IsValid():
		print.go#L700: 		if f.IsValid() && f.CanInterface() {
		print.go#L721: 	if depth > 0 && value.IsValid() && value.CanInterface() {
		print.go#L811: 		if !value.IsValid() {

	github.com/aws/aws-sdk-go/aws/awsutil
		copy.go#L17: 	if !dstval.IsValid() {
		copy.go#L38: 	if !src.IsValid() {
		copy.go#L62: 			if src.Elem().IsValid() {
		copy.go#L73: 			if srcVal.IsValid() && dstVal.CanSet() {
		equal.go#L17: 	if raValid, rbValid := ra.IsValid(), rb.IsValid(); !raValid && !rbValid {
		path_value.go#L63: 					if f := reflect.Indirect(value.Field(i)); f.IsValid() {
		path_value.go#L101: 			if value.IsValid() {
		path_value.go#L118: 						if idx.IsValid() {
		path_value.go#L144: 				if value.IsValid() {
		path_value.go#L165: 	if !v.IsValid() || (v.Kind() == reflect.Ptr && v.IsNil()) {
		path_value.go#L203: 	if !srcVal.IsValid() { // src is literal nil
		prettify.go#L100: 		if !v.IsValid() {

	github.com/aws/aws-sdk-go/aws/request
		request.go#L262: 	return r.Params != nil && reflect.ValueOf(r.Params).Elem().IsValid()
		request.go#L269: 	return r.Data != nil && reflect.ValueOf(r.Data).Elem().IsValid()

	github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
		build.go#L33: 	if !value.IsValid() {
		build.go#L76: 	if !value.IsValid() {
		build.go#L86: 		if !value.IsValid() {

	github.com/aws/aws-sdk-go/private/protocol/query/queryutil
		queryutil.go#L38: 	if !value.IsValid() {
		queryutil.go#L67: 	if !value.IsValid() {

	github.com/aws/aws-sdk-go/private/protocol/rest
		build.go#L79: 		if m.IsValid() {
		build.go#L88: 				if !m.Elem().IsValid() {
		build.go#L92: 			if !m.IsValid() {
		build.go#L141: 				if payload.IsValid() && payload.Interface() != nil {
		build.go#L269: 	if !v.IsValid() {
		payload.go#L12: 	if !v.IsValid() {
		payload.go#L23: 			if payload.IsValid() || (payload.Kind() == reflect.Ptr && !payload.IsNil()) {
		payload.go#L34: 	if !v.IsValid() {
		unmarshal.go#L66: 				if payload.IsValid() {
		unmarshal.go#L123: 		if m.IsValid() {
		unmarshal.go#L153: 	if !v.IsValid() {
		unmarshal.go#L200: 		if !v.IsValid() || (header == "" && v.Elem().Kind() != reflect.String) {

	github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
		build.go#L58: 	if !value.IsValid() { // no need to handle zero values
		build.go#L102: 	if !value.IsValid() {
		build.go#L112: 		if !value.IsValid() {

	github.com/go-git/gcfg
		set.go#L202: 	if dfltField.IsValid() {
		set.go#L225: 	if !vSect.IsValid() {
		set.go#L246: 		if !pv.IsValid() {
		set.go#L268: 	if !vVar.IsValid() {

	github.com/go-redis/redis/v8/internal/proto
		scan.go#L112: 	if !v.IsValid() {

	github.com/google/go-cmp/cmp
		compare.go#L145: 	if !vx.IsValid() || !vy.IsValid() || vx.Type() != vy.Type() {
		compare.go#L147: 		if vx.IsValid() {
		compare.go#L152: 		if vy.IsValid() {
		compare.go#L248: 	if si, ok := step.(SliceIndex); ok && si.isSlice && vx.IsValid() && vy.IsValid() {
		compare.go#L360: 	if !got.IsValid() || got.Bool() != want {
		compare.go#L407: 			if !vax.IsValid() || !vay.IsValid() {
		compare.go#L543: 		if !step.vx.IsValid() && !step.vy.IsValid() {
		options.go#L180: 	if !vx.IsValid() || !vx.CanInterface() || !vy.IsValid() || !vy.CanInterface() {
		options.go#L211: 	if !vx.IsValid() || !vy.IsValid() {
		options.go#L221: 	if !vx.IsValid() || !vy.IsValid() {
		options.go#L222: 		s.report(vx.IsValid() == vy.IsValid(), 0)
		report_compare.go#L382: 			if currKey.IsValid() {
		report_compare.go#L396: 				if k.IsValid() {
		report_compare.go#L423: 		case rv.NumDiff > 0 && !rv.ValueY.IsValid():
		report_compare.go#L425: 		case rv.NumDiff > 0 && !rv.ValueX.IsValid():
		report_references.go#L37: 	if deref && vx.IsValid() {
		report_references.go#L40: 	if deref && vy.IsValid() {
		report_reflect.go#L108: 	if !v.IsValid() {
		report_slices.go#L27: 	case !v.ValueX.IsValid() || !v.ValueY.IsValid():

	github.com/google/go-cmp/cmp/cmpopts
		ignore.go#L169: 		if vx.IsValid() && vf.Call([]reflect.Value{vx})[0].Bool() {
		ignore.go#L172: 		if vy.IsValid() && vf.Call([]reflect.Value{vy})[0].Bool() {
		ignore.go#L198: 		if vx.IsValid() && vf.Call([]reflect.Value{k, vx})[0].Bool() {
		ignore.go#L201: 		if vy.IsValid() && vf.Call([]reflect.Value{k, vy})[0].Bool() {

	github.com/google/go-cmp/cmp/internal/value
		sort.go#L82: 		if !vx.IsValid() || !vy.IsValid() {
		sort.go#L83: 			return !vx.IsValid() && vy.IsValid()

	github.com/imdario/mergo
		map.go#L98: 			if !srcElement.IsValid() {
		merge.go#L63: 	if !src.IsValid() {
		merge.go#L88: 	if dst.IsValid() && src.IsValid() && src.Type() != dst.Type() {
		merge.go#L144: 			if !srcElement.IsValid() {
		merge.go#L147: 			if dst.MapIndex(key).IsValid() {
		merge.go#L163: 				if dstElement.IsValid() {

	github.com/jackc/pgtype
		aclitem_array.go#L89: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		bool_array.go#L92: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		bpchar_array.go#L92: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		bytea_array.go#L73: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		cidr_array.go#L112: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		date_array.go#L93: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		enum_array.go#L89: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		float4_array.go#L92: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		float8_array.go#L92: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		hstore_array.go#L73: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		inet_array.go#L112: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		int2_array.go#L358: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		int4_array.go#L358: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		int8_array.go#L358: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		jsonb_array.go#L92: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		macaddr_array.go#L93: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		numeric_array.go#L206: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		text_array.go#L92: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		timestamp_array.go#L93: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		timestamptz_array.go#L93: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		tsrange_array.go#L54: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		tstzrange_array.go#L54: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		uuid_array.go#L130: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {
		varchar_array.go#L92: 		if !reflectedValue.IsValid() || reflectedValue.IsZero() {

	github.com/jmespath/go-jmespath
		interpreter.go#L323: 		if !v.IsValid() {
		interpreter.go#L334: 		if !v.IsValid() {

	google.golang.org/protobuf/internal/descfmt
		stringer.go#L193: 		if rv.MethodByName("GoType").IsValid() {
		stringer.go#L208: 		if m := v.MethodByName(a); m.IsValid() {
		stringer.go#L211: 		if v.Kind() == reflect.Struct && !rv.IsValid() {
		stringer.go#L214: 		if !rv.IsValid() {

	google.golang.org/protobuf/internal/impl
		convert.go#L165: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L189: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L213: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L237: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L261: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L285: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L309: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L339: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L366: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L403: 	return v.IsValid() && v.Type() == c.goType
		convert.go#L458: 	return v.IsValid() && v.Type() == c.goType
		convert_list.go#L55: 	return v.IsValid() && v.Type() == c.goType
		convert_list.go#L91: 	return v.IsValid() && v.Type() == c.goType
		convert_map.go#L50: 	return v.IsValid() && v.Type() == c.goType
		convert_map.go#L73: 	return rv.IsValid()
		convert_map.go#L78: 	if !rv.IsValid() {

	gopkg.in/yaml.v2
		decode.go#L617: 	if iface.IsValid() {
		encode.go#L99: 	if !in.IsValid() || in.Kind() == reflect.Ptr && in.IsNil() {

	net/http
		transport.go#L372: 	if rv := reflect.ValueOf(altProto["https"]); rv.IsValid() && rv.Type().Kind() == reflect.Struct && rv.Type().NumField() == 1 {

	text/template
		exec.go#L309: 	if !val.IsValid() {
		exec.go#L587: 	if !receiver.IsValid() {
		exec.go#L608: 	if method := ptr.MethodByName(fieldName); method.IsValid() {
		exec.go#L635: 			if !result.IsValid() {
		exec.go#L751: 	if !value.IsValid() {
		exec.go#L780: 			if !value.IsValid() {
		exec.go#L977: 	if !v.IsValid() {
		funcs.go#L143: 		if fn := tmpl.execFuncs[name]; fn.IsValid() {
		funcs.go#L147: 	if fn := builtinFuncs()[name]; fn.IsValid() {
		funcs.go#L156: 	if !value.IsValid() {
		funcs.go#L208: 	if !item.IsValid() {
		funcs.go#L229: 			if x := item.MapIndex(index); x.IsValid() {
		funcs.go#L252: 	if !item.IsValid() {
		funcs.go#L314: 	if !fn.IsValid() {