package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# 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 but not Complex, or Unknown.
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.
MakeBool returns the Bool value for x.
MakeFloat64 returns the numeric 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 numeric value x*i (possibly 0); x must be Int, Float, or Unknown.
MakeInt64 returns the Int value for x.
MakeString returns the String value for x.
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.
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.

# Constants

non-numeric values.
No description provided by the author
No description provided by the author
numeric values.
No description provided by the author
unknown values.

# Interfaces

A Value represents a mathematically exact value of a given Kind.

# Type aliases

Kind specifies the kind of value represented by a Value.