reflect.Value.IsValid (method, view implemented interface methods)

129 uses

	reflect (current package)
		deepequal.go#L28: 	if !v1.IsValid() || !v2.IsValid() {
		deepequal.go#L29: 		return v1.IsValid() == v2.IsValid()
		deepequal.go#L148: 			if !val1.IsValid() || !val2.IsValid() || !deepValueEqual(val1, val2, visited) {
		value.go#L1514: func (v Value) IsValid() bool {
		value.go#L1780: 	if !iter.m.IsValid() {
		value.go#L1799: 	if v.IsValid() {
		value.go#L2820: 			if c.Chan.IsValid() {
		value.go#L2823: 			if c.Send.IsValid() {
		value.go#L2829: 			if !ch.IsValid() {
		value.go#L2841: 			if !v.IsValid() {
		value.go#L2853: 			if c.Send.IsValid() {
		value.go#L2857: 			if !ch.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/json
		decode.go#L362: 		if v.IsValid() {
		decode.go#L372: 		if v.IsValid() {
		decode.go#L386: 		if v.IsValid() {
		decode.go#L694: 			if !mapElem.IsValid() {
		decode.go#L815: 			if kv.IsValid() {
		encode.go#L375: 	if !v.IsValid() {

	encoding/xml
		marshal.go#L413: 	if !val.IsValid() {
		marshal.go#L515: 		if finfo.flags&fOmitEmpty != 0 && (!fv.IsValid() || isEmptyValue(fv)) {
		marshal.go#L817: 		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/go-pg/pg/v10/orm
		hook.go#L83: 	if slice.IsValid() {
		model.go#L72: 	if !v.IsValid() {
		model_slice.go#L27: 	if m.slice.IsValid() && m.slice.Len() > 0 {
		model_table_slice.go#L75: 	if m.slice.IsValid() && m.slice.Len() > 0 {
		model_table_struct.go#L50: 	return !m.strct.IsValid()
		table_params.go#L12: 	if !v.IsValid() {

	github.com/go-pg/pg/v10/types
		array.go#L22: 	if !v.IsValid() {
		array.go#L54: 	if a.v.IsValid() {
		hstore.go#L22: 	if !v.IsValid() {
		hstore.go#L43: 	if h.v.IsValid() {
		scan.go#L41: 	if !vv.IsValid() {
		scan_value.go#L171: 	if !v.IsValid() {

	github.com/google/go-cmp/cmp
		compare.go#L146: 	if !vx.IsValid() || !vy.IsValid() || vx.Type() != vy.Type() {
		compare.go#L148: 		if vx.IsValid() {
		compare.go#L153: 		if vy.IsValid() {
		compare.go#L249: 	if si, ok := step.(SliceIndex); ok && si.isSlice && vx.IsValid() && vy.IsValid() {
		compare.go#L358: 	if !got.IsValid() || got.Bool() != want {
		compare.go#L392: 			if !vax.IsValid() || !vay.IsValid() {
		compare.go#L528: 		if !step.vx.IsValid() && !step.vy.IsValid() {
		options.go#L182: 	if !vx.IsValid() || !vx.CanInterface() || !vy.IsValid() || !vy.CanInterface() {
		options.go#L213: 	if !vx.IsValid() || !vy.IsValid() {
		options.go#L223: 	if !vx.IsValid() || !vy.IsValid() {
		options.go#L224: 		s.report(vx.IsValid() == vy.IsValid(), 0)
		report_compare.go#L383: 			if currKey.IsValid() {
		report_compare.go#L397: 				if k.IsValid() {
		report_compare.go#L424: 		case rv.NumDiff > 0 && !rv.ValueY.IsValid():
		report_compare.go#L426: 		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#L115: 	if !v.IsValid() {
		report_slices.go#L28: 	case !v.ValueX.IsValid() || !v.ValueY.IsValid():

	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/vmihailenco/msgpack/v5
		decode.go#L268: 	if !vv.IsValid() {

	golang.org/x/tools/internal/typesinternal
		types.go#L20: 	if !f.IsValid() {
		types.go#L22: 		if !f.IsValid() {
		types.go#L44: 		if !f.IsValid() {

	google.golang.org/protobuf/internal/descfmt
		stringer.go#L195: 		if rv.MethodByName("GoType").IsValid() {
		stringer.go#L210: 		if m := v.MethodByName(a); m.IsValid() {
		stringer.go#L213: 		if v.Kind() == reflect.Struct && !rv.IsValid() {
		stringer.go#L216: 		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#L478: 	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() {

	gotest.tools/v3/assert/cmp
		compare.go#L169: 		if !colValue.IsValid() {
		compare.go#L189: 			return toResult(colValue.MapIndex(itemValue).IsValid(), msg)

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

	text/template
		exec.go#L319: 	if !val.IsValid() {
		exec.go#L608: 	if !receiver.IsValid() {
		exec.go#L629: 	if method := ptr.MethodByName(fieldName); method.IsValid() {
		exec.go#L659: 			if !result.IsValid() {
		exec.go#L804: 	if !value.IsValid() {
		exec.go#L833: 			if !value.IsValid() {
		exec.go#L1030: 	if !v.IsValid() {
		funcs.go#L146: 		if fn := tmpl.execFuncs[name]; fn.IsValid() {
		funcs.go#L150: 	if fn := builtinFuncs()[name]; fn.IsValid() {
		funcs.go#L159: 	if !value.IsValid() {
		funcs.go#L211: 	if !item.IsValid() {
		funcs.go#L232: 			if x := item.MapIndex(index); x.IsValid() {
		funcs.go#L255: 	if !item.IsValid() {
		funcs.go#L317: 	if !fn.IsValid() {