This repository is dedicated to learning and exploring the Go programming language. It includes practical examples, concept demonstrations, and small projects to help beginners and intermediate developers enhance their understanding of Go.
- Data Types: Demonstrates the use of various data types in Go (int, float, bool, string).
- Arrays: Learn about arrays, their fixed size, and how to manipulate them.
- Slices: Explore slices for dynamic array-like functionality in Go.
- Maps: Understand maps for key-value pair data structures.
- Pointers: Discover pointers (
*
and&
) to work with memory addresses.
- If-Else: Work with conditionals using if-else and if-else-if ladder constructs.
- Loops: Explore different types of loops (
for
,range
) and their usage.
- Basic Functions: Dive into basic functions, variadic functions, and anonymous functions.
- Named Returns: Learn about named return values and how they simplify return statements.
- Hello, World!: Start with the classic
Hello, World!
program. - Constants and Literals: Work with constants, literals, and special identifiers.
- Variables: Explore variable declarations, constants, and blank identifiers.
- Calculator: A basic arithmetic calculator combining foundational concepts.
- Multiplication Table Generator: Generate multiplication tables for any given number.
- Temperature Converter: Convert temperatures between Celsius, Fahrenheit, and Kelvin.
- Bank Account Manager: Simulate basic bank account operations (balance check, deposit, withdrawal).
- To-Do List: Manage tasks in a Command-Line Interface (CLI) environment.
- Clone the repository:
git clone https://github.com/sArtHak03804/learn_go.git
- redirect to directory
cd learn_go
- Uncomment a function in
main.go
to run it:// Uncomment the required function to run Ex: hello() then type in terminal: go run main.go
- Build a strong foundation in Go programming.
- Learn best practices and idiomatic Go.
- Explore real-world applications with hands-on mini-projects.
Contributions are welcome! If you'd like to contribute, please:
- Fork the repository.
- Create a new branch for your changes.
- Submit a pull request explaining the changes you made.
Whether it's fixing a typo, adding a new example, or suggesting improvements, every contribution is appreciated!
Name: Sarthak Patel
Email: patelsarthak666@gmail.com
For any queries, suggestions, or feedback, feel free to reach out!