number-crunch is a simple Go lang web application that listens on port 8080.
You can use this application for Kubernetes learning.
Clone the repo and run the server.
git clone [email protected]:cloudqubes/number-crunch.git
go run number-crunch.gonumber-crunch has two URL end points.
Return the square root of a number. Path: `/square-root/
Example with curl
curl http://127.0.0.1/square-root/4
=> {"InputNumber":4,"SquareRoot":2}Return the cube root of a number. Path: `/cube-root/
Example with curl
curl http://127.0.0.1:8080/cube-root/8
=> {"InputNumber":8,"CubeRoot":2}