calc

package
v0.0.0-...-e26c3de Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a int, b int) float32

Add function for sum.

func Divide

func Divide(a int, b int) float32

Divide two numbers.

func Mut

func Mut(a int, b int) float32

Mut function for multiplication.

func Sub

func Sub(a int, b int) float32

Sub function for subtraction.

Types

type Event

type Event struct {
	Event string    `json:"event"`
	Args  EventArgs `json:"args"`
}

Event send data to broker

type EventArgs

type EventArgs struct {
	A int `json:"a"`
	B int `json:"b"`
}

EventArgs contains received data.

type EventResult

type EventResult struct {
	Result float32 `json:"result"`
}

EventResult contains result data.

Jump to

Keyboard shortcuts

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