reflect.Value.Int (method)

67 uses

	reflect (current package)
		deepequal.go#L160: 		return v1.Int() == v2.Int()
		value.go#L1398: func (v Value) Int() int64 {
		value.go#L1525: 		return v.Int() == 0
		value.go#L3275: 	return makeInt(v.flag.ro(), uint64(v.Int()), t)
		value.go#L3295: 	return makeFloat(v.flag.ro(), float64(v.Int()), t)
		value.go#L3322: 	if x := v.Int(); int64(rune(x)) == x {

	database/sql
		convert.go#L508: 		return strconv.FormatInt(rv.Int(), 10)
		convert.go#L524: 		return strconv.AppendInt(buf, rv.Int(), 10), true

	database/sql/driver
		types.go#L84: 		iv := sv.Int()
		types.go#L112: 		i64 := rv.Int()
		types.go#L267: 		return rv.Int(), nil

	encoding/asn1
		marshal.go#L486: 		return int64Encoder(v.Int()), nil

	encoding/binary
		binary.go#L641: 			e.int8(int8(v.Int()))
		binary.go#L643: 			e.int16(int16(v.Int()))
		binary.go#L645: 			e.int32(int32(v.Int()))
		binary.go#L647: 			e.int64(v.Int())

	encoding/json
		encode.go#L348: 		return v.Int() == 0
		encode.go#L552: 	b := strconv.AppendInt(e.scratch[:0], v.Int(), 10)
		encode.go#L1021: 		w.ks = strconv.FormatInt(w.k.Int(), 10)

	encoding/xml
		marshal.go#L761: 		return strconv.FormatInt(val.Int(), 10), nil, nil
		marshal.go#L860: 				if err := emit(p, strconv.AppendInt(scratch[:0], vf.Int(), 10)); err != nil {
		marshal.go#L1053: 		return v.Int() == 0

	fmt
		print.go#L745: 		p.fmtInteger(uint64(f.Int()), signed, verb)
		print.go#L897: 				n := v.Int()

	github.com/go-pg/pg/v10/types
		append_value.go#L151: 	return strconv.AppendInt(b, v.Int(), 10)

	github.com/go-pg/zerochecker
		zerochecker.go#L103: 	return v.Int() == 0

	github.com/google/go-cmp/cmp
		compare.go#L273: 		s.report(vx.Int() == vy.Int(), 0)
		report_reflect.go#L166: 		return textLine(fmt.Sprint(v.Int()))
		report_slices.go#L305: 						ss = append(ss, fmt.Sprint(v.Index(i).Int()))

	github.com/google/go-cmp/cmp/internal/value
		sort.go#L41: 		return x.Int() < y.Int()

	github.com/vmihailenco/msgpack/v5
		encode_number.go#L211: 	return e.EncodeInt(v.Int())
		encode_number.go#L231: 	return e.encodeInt8Cond(int8(v.Int()))
		encode_number.go#L235: 	return e.encodeInt16Cond(int16(v.Int()))
		encode_number.go#L239: 	return e.encodeInt32Cond(int32(v.Int()))
		encode_number.go#L243: 	return e.encodeInt64Cond(v.Int())
		types.go#L341: 		return v.Int() == 0

	golang.org/x/tools/internal/typesinternal
		types.go#L47: 		data[i] = int(f.Int())

	google.golang.org/protobuf/internal/descfmt
		stringer.go#L234: 			isZero = rv.Int() == 0

	google.golang.org/protobuf/internal/impl
		codec_map.go#L292: 			return keys[i].Int() < keys[j].Int()
		convert.go#L179: 	return protoreflect.ValueOfInt32(int32(v.Int()))
		convert.go#L203: 	return protoreflect.ValueOfInt64(int64(v.Int()))
		convert.go#L390: 	return protoreflect.ValueOfEnum(protoreflect.EnumNumber(v.Int()))
		legacy_enum.go#L38: 	return et.New(protoreflect.EnumNumber(v.Int()))
		legacy_message.go#L227: 				protoreflect.FieldNumber(v.FieldByName("Start").Int()),
		legacy_message.go#L228: 				protoreflect.FieldNumber(v.FieldByName("End").Int() + 1),
		message_reflect_field.go#L288: 				return rv.Int() != 0
		message_reflect_field.go#L514: 		return v.Int() == 0

	internal/fmtsort
		sort.go#L86: 		a, b := aVal.Int(), bVal.Int()

	text/template
		exec.go#L333: 		truth = val.Int() != 0
		funcs.go#L190: 		x = index.Int()
		funcs.go#L459: 				truth = arg1.Int() >= 0 && uint64(arg1.Int()) == arg.Uint()
		funcs.go#L461: 				truth = arg.Int() >= 0 && arg1.Uint() == uint64(arg.Int())
		funcs.go#L476: 				truth = arg1.Int() == arg.Int()
		funcs.go#L523: 			truth = arg1.Int() < 0 || uint64(arg1.Int()) < arg2.Uint()
		funcs.go#L525: 			truth = arg2.Int() >= 0 && arg1.Uint() < uint64(arg2.Int())
		funcs.go#L536: 			truth = arg1.Int() < arg2.Int()