Sign inSign up

vorteil/solve

By vorteil

Updated about 5 years ago

Image
0

1.4K

vorteil/solve repository overview

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: vorteil/solve:v2
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
}

Tag summary

Content type

Image

Digest

Size

2 MB

Last updated

about 5 years ago

docker pull vorteil/solve