# Functions
BinaryOp returns the result of the binary expression x op y.
BitLen returns the number of bits required to represent the absolute value x in binary representation; x must be an [Int] or an [Unknown].
BoolVal returns the Go boolean value of x, which must be a [Bool] or an [Unknown].
Bytes returns the bytes for the absolute value of x in little- endian binary representation; x must be an [Int].
Compare returns the result of the comparison x op y.
Denom returns the denominator of x; x must be [Int], [Float], or [Unknown].
Float32Val is like [Float64Val] but for float32 instead of float64.
Float64Val returns the nearest Go float64 value of x and whether the result is exact; x must be numeric or an [Unknown], but not [Complex].
Imag returns the imaginary part of x, which must be a numeric or unknown value.
Int64Val returns the Go int64 value of x and whether the result is exact; x must be an [Int] or an [Unknown].
Make returns the [Value] for x.
MakeBool returns the [Bool] value for b.
MakeFloat64 returns the [Float] value for x.
MakeFromBytes returns the [Int] value given the bytes of its little-endian binary representation.
MakeFromLiteral returns the corresponding integer, floating-point, imaginary, character, or string value for a Go literal string.
MakeImag returns the [Complex] value x*i; x must be [Int], [Float], or [Unknown].
MakeInt64 returns the [Int] value for x.
MakeString returns the [String] value for s.
MakeUint64 returns the [Int] value for x.
MakeUnknown returns the [Unknown] value.
Num returns the numerator of x; x must be [Int], [Float], or [Unknown].
Real returns the real part of x, which must be a numeric or unknown value.
Shift returns the result of the shift expression x op s with op == [token.SHL] or [token.SHR] (<< or >>).
Sign returns -1, 0, or 1 depending on whether x < 0, x == 0, or x > 0; x must be numeric or [Unknown].
StringVal returns the Go string value of x, which must be a [String] or an [Unknown].
ToComplex converts x to a [Complex] value if x is representable as a [Complex].
ToFloat converts x to a [Float] value if x is representable as a [Float].
ToInt converts x to an [Int] value if x is representable as an [Int].
Uint64Val returns the Go uint64 value of x and whether the result is exact; x must be an [Int] or an [Unknown].
UnaryOp returns the result of the unary expression op y.
Val returns the underlying value for a given constant.
# Interfaces
A Value represents the value of a Go constant.
# Type aliases
Kind specifies the kind of value represented by a [Value].