Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedCalculatorTool ¶
AdvancedCalculatorTool 高级计算器工具
支持更多数学函数
func NewAdvancedCalculatorTool ¶
func NewAdvancedCalculatorTool(operations CalculatorOperations) *AdvancedCalculatorTool
NewAdvancedCalculatorTool 创建高级计算器工具
type CalculatorOperations ¶
type CalculatorOperations struct {
Add bool // 加法
Subtract bool // 减法
Multiply bool // 乘法
Divide bool // 除法
Power bool // 幂运算
Sqrt bool // 平方根
Abs bool // 绝对值
}
CalculatorOperations 支持的计算操作类型
Click to show internal directories.
Click to hide internal directories.