Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperationAdd = "+" OperationSubtract = "-" OperationMultiply = "*" OperationDivide = "/" )
Predefined operations
Variables ¶
This section is empty.
Functions ¶
func Calc ¶
func Calc(calc func(operation CalcOperation) func(first, second float64) float64)
Calc is a function to test a function that returns operation function for operation
func Polynomial ¶
Polynomial is a function to test a polynomial function
Types ¶
type CalcOperation ¶
type CalcOperation string
CalcOperation is a type that define allowed operations for calculator
Click to show internal directories.
Click to hide internal directories.