Documentation ¶
Index ¶
- type Config
- func (c *Config) BinaryExpr(exprOp token.Token, xDataType, yDataType gotypes.DataType) (gotypes.DataType, error)
- func (c *Config) BuiltinFunctionInvocation(name string, arguments []gotypes.DataType) ([]gotypes.DataType, error)
- func (c *Config) IndexExpr(xDataType, idxDataType gotypes.DataType) (gotypes.DataType, string, error)
- func (c *Config) MakKeyExpr(xDataType gotypes.DataType) (gotypes.DataType, error)
- func (c *Config) RangeExpr(xDataType gotypes.DataType) (gotypes.DataType, gotypes.DataType, error)
- func (c *Config) SelectorExpr(xDataType gotypes.DataType, item string) (*accessors.FieldAttribute, error)
- func (c *Config) TypecastExpr(xDataType, tDataType gotypes.DataType) (gotypes.DataType, error)
- func (c *Config) UnaryExpr(exprOp token.Token, xDataType gotypes.DataType) (gotypes.DataType, error)
- type MultiArith
- func (m *MultiArith) AddXFromString(literal string) *MultiArith
- func (m *MultiArith) AddYFromString(literal string) *MultiArith
- func (m *MultiArith) Error() error
- func (m *MultiArith) IsXComplex() bool
- func (m *MultiArith) IsXFloat() bool
- func (m *MultiArith) IsXInt() bool
- func (m *MultiArith) IsXUint() bool
- func (m *MultiArith) Perform(op token.Token) *MultiArith
- func (m *MultiArith) PerformUnary(op token.Token) *MultiArith
- func (m *MultiArith) XToLiteral(targetType string) (string, error)
- func (m *MultiArith) YToLiteral(targetType string) (string, error)
- func (m *MultiArith) ZBool() bool
- func (m *MultiArith) ZFloor() *MultiArith
- func (m *MultiArith) ZToLiteral(targetType string, typeCheck bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) BinaryExpr ¶
func (*Config) BuiltinFunctionInvocation ¶
func (*Config) MakKeyExpr ¶
func (*Config) SelectorExpr ¶
func (*Config) TypecastExpr ¶
type MultiArith ¶
type MultiArith struct {
X, Y, Z *decimal.Decimal
Xi, Yi, Zi *decimal.Decimal
// contains filtered or unexported fields
}
func NewMultiArith ¶
func NewMultiArith() *MultiArith
func (*MultiArith) AddXFromString ¶
func (m *MultiArith) AddXFromString(literal string) *MultiArith
func (*MultiArith) AddYFromString ¶
func (m *MultiArith) AddYFromString(literal string) *MultiArith
func (*MultiArith) Error ¶
func (m *MultiArith) Error() error
func (*MultiArith) IsXComplex ¶
func (m *MultiArith) IsXComplex() bool
func (*MultiArith) IsXFloat ¶
func (m *MultiArith) IsXFloat() bool
func (*MultiArith) IsXInt ¶
func (m *MultiArith) IsXInt() bool
func (*MultiArith) IsXUint ¶
func (m *MultiArith) IsXUint() bool
func (*MultiArith) Perform ¶
func (m *MultiArith) Perform(op token.Token) *MultiArith
func (*MultiArith) PerformUnary ¶
func (m *MultiArith) PerformUnary(op token.Token) *MultiArith
func (*MultiArith) XToLiteral ¶
func (m *MultiArith) XToLiteral(targetType string) (string, error)
func (*MultiArith) YToLiteral ¶
func (m *MultiArith) YToLiteral(targetType string) (string, error)
func (*MultiArith) ZBool ¶
func (m *MultiArith) ZBool() bool
func (*MultiArith) ZFloor ¶
func (m *MultiArith) ZFloor() *MultiArith
func (*MultiArith) ZToLiteral ¶
func (m *MultiArith) ZToLiteral(targetType string, typeCheck bool) (string, error)
Click to show internal directories.
Click to hide internal directories.