This repository contains a collection of mini projects created while learning the Go programming language.
Description:
A simple investment calculator that calculates the future value of an investment based on user inputs such as initial amount, interest rate, and duration.
Features:
- Calculates yearly investment growth
- Displays results in a formatted table
- Accepts user inputs for flexibility
Files:
invest_calculator.go
β main Go programinvest-calculator.exe
β executable build for Windows.idea
β IDE configuration folder (GoLand)
Description:
A profit calculator that determines the profit from a product sale by taking purchase price and selling price as inputs.
Features:
- Calculates profit amount and percentage
- Simple command-line interaction
- Easy to extend for tax or discount calculations
Files:
profit_calculator.go
β main Go programprofit-calculator.exe
β executable build for Windows.idea
β IDE configuration folder (GoLand)
- Install Go in your system.
Navigate to the project folder you want to run and execute:
go run filename.go
Replace filename.go
with the actual file name, for example:
go run invest_calculator.go
If you have already built the project:
./filename.exe
Replace filename.exe
with the actual executable file name.
- The
.idea
folders contain IDE settings and can be ignored if not using GoLand. - These projects are created purely for learning purposes. Contributions, suggestions, and improvements are welcome.
Ilham Ramadhan
This repository is licensed under the MIT License.
- π Feel free to explore, fork, and star this repository if you find it helpful for your Go learning journey!