Versions in this module Expand all Collapse all v1 v1.2.1 Sep 19, 2023 v1.2.0 Sep 19, 2023 Changes in this version + func NewCalculationRepeatInput(inputs []string, initial string, history CalculationHistory) calculationRepeatInput + func NewCalculationWithMultipleInput(inputs []string) calculationWithMultipleInput + func NewCalculationWithOneInput(operation string, inputs []string) calculationWithOneInput + func NewCalculationWithTwoInput(input1 string, input2 string, operation string) *calculationWithTwoInput + type CalculationHistory struct + History []CalculationResult + type CalculationInput struct + Input string + func (i CalculationInput) ParseCalculationInput(history CalculationHistory) (ICalculationInput, errors.WrappedError) + type CalculationResult struct + Input string + Result string + type ICalculationInput interface + Calculate func() string + GetInput func() string + Validate func() errors.WrappedError + type ICalculatorRestHandler interface + HandleCalculation func(context.Context, http.ResponseWriter, *http.Request) + HandleReadinessLiveness func(context.Context, http.ResponseWriter, *http.Request) + type ICalculatorService interface + Calculate func(context.Context, ICalculationInput) (CalculationResult, errors.WrappedError) + GetCalculationHistory func(context.Context) CalculationHistory