Skip to content

faretek1/calcapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calcapi

extremely useless backend server that does simple arithmetic

e.g. https://ca.faretek.dev/add/1/2 gives 1 + 2 = 3 as a response.

The response isn't even json. it's just a string with the inputs and the output in the format {a} {op} {b} = {result}

so yeah. this is my first actual project in go which is cool i guess. its quite useless though

It works with floats and ints. 1 / 0 gives +Inf because of how go and IEEE 754 works.

available ops

add: + sub: - mul: * div: /

I am not, in fact, Yandere dev, so I used the first class functions of golang to my advantage. It is a bit weird but eh its cool tbh

About

calculator api :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published