Skip to content

ilramdhan/learn-go-journey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Go Mini Projects

This repository contains a collection of mini projects created while learning the Go programming language.

πŸ—‚οΈ Project Structure

01-go-basics

πŸ’° investment-calculator

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 program
  • invest-calculator.exe – executable build for Windows
  • .idea – IDE configuration folder (GoLand)

πŸ“ˆ profit-calculator

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 program
  • profit-calculator.exe – executable build for Windows
  • .idea – IDE configuration folder (GoLand)

πŸš€ How to Run

πŸ”§ Prerequisites

  • Install Go in your system.

▢️ Run Directly with Go

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

πŸ› οΈ Run Built Executable

If you have already built the project:

./filename.exe

Replace filename.exe with the actual executable file name.

πŸ’‘ Notes

  • 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.

πŸ‘€ Author

Ilham Ramadhan

πŸ“„ License

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!

About

My journey of learning Go from scratch through a Udemy course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages