Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugInfo ¶
type DebugInfo struct {
	Expression string            // 表达式
	Steps      []DebugStep       // 调试步骤
	Variables  map[string]string // 变量值
	Result     string            // 结果
	Error      error             // 错误
	// contains filtered or unexported fields
}
    DebugInfo 调试信息结构体
func DebugCalculate ¶
func DebugCalculate(expression string, vars map[string]decimal.Decimal, config *math_config.CalcConfig) (decimal.Decimal, *DebugInfo, error)
DebugCalculate 带调试信息的计算
func (*DebugInfo) SetVariables ¶
SetVariables 设置变量
 Click to show internal directories. 
   Click to hide internal directories.