Welcome to my Golang Learning repository! This repo contains very basic, beginner-friendly Go programs, structured clearly by topic. I created this for my own learning journey — and hopefully, it helps others starting with Go too. 😊
Note: This was created by me when I was studying golang. So, sometimes it might have incomplete codes. Feel free to contribute by following the below guide 👇
- Each folder corresponds to a fundamental Golang concept.
- Every folder has a single
main.gofile with clean, minimal code. - Contributions are warmly welcome! See below. 👇
Want to help improve this repo? Here's how you can contribute:
- ✅ Add output examples for existing programs (maybe some corner cases and parameters too can be considered).
- ✅ Add brief comment explanations inside
main.gofiles. - ✅ Suggest improvements or new beginner topics.
- ✅ Keep code beginner-friendly!
Note: If you add new codes/topics make sure to include brief comment explanations inside main.go files for future references.
| S.No | Golang Topic | Repo Link |
|---|---|---|
| 01 | Hello World | 01-hello |
| 02 | Variables | 02-variables |
| 03 | User Input | 03-userinput |
| 04 | Conversions | 04-conversions |
| 05 | Handling Time | 05-handlingtime |
| 06 | Pointers | 07-pointers |
| 07 | Arrays | 08-arrays |
| 08 | Slices | 09-slice |
| 09 | Maps | 10-maps |
| 10 | Structs | 11-structs |
| 11 | If-Else | 12-ifelse |
| 12 | Switch Case | 13-switchcase |
| 13 | Loops | 14-loops |
| 14 | Functions | 15-functions |
| 15 | Methods | 16-methods |
| 16 | Defer | 17-defer |
| 17 | Files | 18-files |
| 18 | Web Requests | 19-webrequests |
| 19 | URLs | 20-urls |
| 21 | Web Request Verbs | 21-webreqverbs |
| 19 | MockUpServer | webserver |
If you find this useful and want to help it grow:
- Fork the repo
- Improve or document code
- Open a PR
Thanks for stopping by and happy coding! 🧑💻🚀
🔗 https://github.com/hirux06/golang-learning
Made with ❤️ by Saran