An open API service indexing awesome lists of open source software.

https://github.com/alok-mishra143/learn-golang


https://github.com/alok-mishra143/learn-golang

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# Learn Golang 🚀

A concise, hands-on journal of small Go examples and exercises — updated daily while learning Go.

## Progress Table

| Day | Activity | Folder Reference |
| ----- | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Day 1 | Created first Go program (Hello World) | [`1_hello-world`](./1_hello-world/) |
| Day 2 | Simple value types and examples | [`2_simple-values`](./2_simple-values/), [`3_variables`](./3_variables/), [`4_constants`](./4_constants/), [`5_for`](./5_for/), [`6_if-else`](./6_if-else/) |
| Day 3 | Control flow, arrays/slices/maps, funcs | [`7_switch`](./7_switch/), [`8_arrays`](./8_arrays/), [`9_slices`](./9_slices/), [`10_maps`](./10_maps/), [`11_range`](./11_range/), [`12_functions`](./12_functions/), [`13_Variadic-function`](./13_Variadic-function/) |
| Day 4 | Pointers, closures, structs & interfaces | [`14_Closures`](./14_Closures/), [`15_pointers`](./15_pointers/), [`16_Structs`](./16_Structs/), [`17_interface`](./17_interface/) |
| Day 5 | Enums, generics and goroutines | [`18_enums`](./18_enums/), [`19_generics`](./19_generics/), [`20_gorouting`](./20_gorouting/) |

---

## Notes

- These exercises target Go 1.21+ for a few helper packages (`slices`, `maps`) used in examples. If you're on an older Go version, remove those parts or update Go.
- Contributions welcome! Open a PR with improvements or more examples.

---

This repository will be updated daily with new Go learning exercises and notes.