goFirst
Written with Echo, goFirst is a simple calculator which performs the 4 main mathematical operations on the two numbers given in query parameters of its routes or the body.
Asking yourself why it is named goFirst? There are two reasons for that, first this is my first go project, second the first thing comes to your mind when you want to do math is a calculator.
To run the project, you won't have any hardship, simply clone or fork the project into your working directory, change the directory to the project directory and run go run server.go
in your terminal.
The project is programmed to run on your 8181 server which you can change easily, currently the available routes are /add
,/deduct
, /multiply
and /divide
and two query parameters as first
and second
will take your numbers on GET method and /math
on POST method will take your numbers and the mathematical operation to be performed.
-
Notifications
You must be signed in to change notification settings - Fork 1
behzadmousavi/goFirst
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This repo serves only as my playground to learn go and has no other uses!
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published