mymath

package
v0.0.0-...-746d51b Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Divide = func(a int, b int) int {
	defer func() {
		if err := recover(); err != nil {
			log.Println("Divide: ", err)
		}
	}()

	return a / b
}

Functions

func Multiply

func Multiply(a int, b int) int

func New

func New() calculator

func Subtract

func Subtract(a int, b int) int

func Sum

func Sum(a int, b int) int

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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