A hands-on learning repository covering core concepts of the Go programming language.
| Topic | Description |
|---|---|
| Control Flow | if/else, for loops, and switch statements |
| Structs | Defining and using structs, methods, and embedding |
| Pointers | Pointer basics, dereferencing, and pass-by-reference |
| Panic & Recover | Error handling with panic and recover |
| File I/O | Reading and writing files |
| Packages | Organizing code into packages |
| Prime Numbers | Example algorithm — prime number checker |
| Swap | Value swapping using pointers |
# Clone the repo
git clone https://github.com/Mathoholic/golang.git
cd golang
# Run any example (e.g., main)
go run fundamentals/main/main.go- Go 1.25+