Versions in this module Expand all Collapse all v1 v1.1.3 May 9, 2023 Changes in this version + func Assign(x constant.Value, t reflect.Type) (r reflect.Value, ok bool) + func AssignableTo(x constant.Value, t reflect.Type) bool + func BinaryOp(x constant.Value, op token.Token, y constant.Value) (r constant.Value, err error) + func BoolVal(x constant.Value) (r bool, ok bool) + func CompareOp(x constant.Value, op token.Token, y constant.Value) (r bool, err error) + func CompareOpTyped(x TypedValue, op token.Token, y TypedValue) (r bool, err error) + func Complex128Val(x constant.Value) (complex128, bool) + func Complex64Val(x constant.Value) (complex64, bool) + func ConvertibleTo(x constant.Value, t reflect.Type) bool + func DefaultType(x constant.Value) reflect.Type + func DefaultTypeForKind(k constant.Kind) reflect.Type + func DefaultValue(x constant.Value) (r reflect.Value, ok bool) + func DefaultValueInterface(x constant.Value) (r interface{}, ok bool) + func Float32Val(x constant.Value) (float32, bool) + func Float64Val(x constant.Value) (float64, bool) + func Int16Val(x constant.Value) (int16, bool) + func Int32Val(x constant.Value) (int32, bool) + func Int64Val(x constant.Value) (int64, bool) + func Int8Val(x constant.Value) (int8, bool) + func IntVal(x constant.Value) (int, bool) + func IsNumeric(k constant.Kind) bool + func KindString(k constant.Kind) (r string) + func MakeBool(x bool) constant.Value + func MakeComplex128(x complex128) constant.Value + func MakeComplex64(x complex64) constant.Value + func MakeFloat32(x float32) constant.Value + func MakeFloat64(x float64) constant.Value + func MakeInt(x int) constant.Value + func MakeInt16(x int16) constant.Value + func MakeInt32(x int32) constant.Value + func MakeInt64(x int64) constant.Value + func MakeInt8(x int8) constant.Value + func MakeString(x string) constant.Value + func MakeUint(x uint) constant.Value + func MakeUint16(x uint16) constant.Value + func MakeUint32(x uint32) constant.Value + func MakeUint64(x uint64) constant.Value + func MakeUint8(x uint8) constant.Value + func MustAssign(x constant.Value, t reflect.Type) reflect.Value + func RuneVal(x constant.Value) (rune, bool) + func ShiftOp(x constant.Value, op token.Token, s uint) (r constant.Value, err error) + func StringVal(x constant.Value) (string, bool) + func Uint16Val(x constant.Value) (uint16, bool) + func Uint32Val(x constant.Value) (uint32, bool) + func Uint64Val(x constant.Value) (uint64, bool) + func Uint8Val(x constant.Value) (uint8, bool) + func UintVal(x constant.Value) (uint, bool) + func UnaryOp(op token.Token, y constant.Value, prec uint) (r constant.Value, err error) + type TypedValue struct + func BinaryOpTyped(x TypedValue, op token.Token, y TypedValue) (r TypedValue, err error) + func Convert(x constant.Value, t reflect.Type) (r TypedValue, ok bool) + func MakeTypedValue(x constant.Value, t reflect.Type) (r TypedValue, ok bool) + func MustConvert(x constant.Value, t reflect.Type) TypedValue + func MustMakeTypedValue(x constant.Value, t reflect.Type) TypedValue + func ShiftOpTyped(x TypedValue, op token.Token, s uint) (r TypedValue, err error) + func UnaryOpTyped(op token.Token, y TypedValue, prec uint) (r TypedValue, err error) + func (x TypedValue) Assign(t reflect.Type) (r reflect.Value, ok bool) + func (x TypedValue) AssignableTo(t reflect.Type) bool + func (x TypedValue) Convert(t reflect.Type) (TypedValue, bool) + func (x TypedValue) ConvertibleTo(t reflect.Type) bool + func (x TypedValue) Equal(y TypedValue) bool + func (x TypedValue) ExactString() string + func (x TypedValue) ExactStringType() string + func (x TypedValue) MustAssign(t reflect.Type) reflect.Value + func (x TypedValue) MustConvert(t reflect.Type) TypedValue + func (x TypedValue) String() string + func (x TypedValue) StringType() string + func (x TypedValue) Type() reflect.Type + func (x TypedValue) Untyped() constant.Value + func (x TypedValue) Value() reflect.Value