solve

command module
v0.0.0-...-8835833 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README


{ "image": "direktiv/solve", "desc": "Solves math expressions" }

Solve

Solves math expressions using the Knetiv/govaluate Golang package.

Direktiv

An example workflow of using the container solve container to solve basic math.

id: solver
functions: 
- id: solve-math-expression
  image: direktiv/solve:v1
states:
- id: solve
  type: action
  action:
    function: solve-math-expression
    input:
	    x: "10*3"

Input

Expects input in the following format where x contains the math expression to solve:

input:
	x: "10*3"

Output

Returns output in the following format:

{
  "return": 30
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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