In this project we are going to build a calculator which will have functionalities such as - History, Back, Clear, opening bracket “(”, closing bracket “)”, division “/”, multiplication “*”, addition “+”, subtraction “-”, equal to “=”, decimal point/dot “.”, and 0 - 9 decimal digits.
- Go Lang
- fyne.io Framework
- TDM GCC Compiler
- Code Editor
- Whenever we click on our “History” button we want to remove the string from the array and display it on our history.
-
- How it work
-
-
- Now inside our history function, we’ll run a reverse for loop because we want to print the last string of operation as our recent most history. Then well add the history array inside our history string.And will print each operation on a new line.
-
Thanks Pepcoding