calculator

package
v0.0.0-...-372e42e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder

type Adder interface {
	Add(ctx context.Context, x float64, y float64) (float64, error)
}

type Divider

type Divider interface {
	Divide(ctx context.Context, x float64, y float64) (float64, error)
}

type MathError

type MathError struct {
	X       float64
	Y       float64
	Message string
}

func (*MathError) Error

func (e *MathError) Error() string

type Multiplier

type Multiplier interface {
	Multiply(ctx context.Context, x float64, y float64) (float64, error)
}

type Subtracter

type Subtracter interface {
	Subtract(ctx context.Context, x float64, y float64) (float64, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL