Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + func BitLen(x Value) int + func BoolVal(x Value) bool + func Bytes(x Value) []byte + func Compare(x_ Value, op token.Token, y_ Value) bool + func Float32Val(x Value) (float32, bool) + func Float64Val(x Value) (float64, bool) + func Int64Val(x Value) (int64, bool) + func Sign(x Value) int + func StringVal(x Value) string + func Uint64Val(x Value) (uint64, bool) + func Val(x Value) any + type Kind int + const Bool + const Complex + const Float + const Int + const String + const Unknown + func (i Kind) String() string + type Value interface + ExactString func() string + Kind func() Kind + String func() string + func BinaryOp(x_ Value, op token.Token, y_ Value) Value + func Denom(x Value) Value + func Imag(x Value) Value + func Make(x any) Value + func MakeBool(b bool) Value + func MakeFloat64(x float64) Value + func MakeFromBytes(bytes []byte) Value + func MakeFromLiteral(lit string, tok token.Token, zero uint) Value + func MakeImag(x Value) Value + func MakeInt64(x int64) Value + func MakeString(s string) Value + func MakeUint64(x uint64) Value + func MakeUnknown() Value + func Num(x Value) Value + func Real(x Value) Value + func Shift(x Value, op token.Token, s uint) Value + func ToComplex(x Value) Value + func ToFloat(x Value) Value + func ToInt(x Value) Value + func UnaryOp(op token.Token, y Value, prec uint) Value