8000 GitHub - gikenye/GoByExamples
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gikenye/GoByExamples

Repository files navigation

GoByExamples 🚀

Welcome to my GoByExample repository! This repository is part of my journey to learning Go, an open-source programming language designed for building scalable, secure, and reliable software.

Table of Contents 📚

Introduction 📝

GoByExample is a hands-on introduction to Go using annotated example programs. Each example is designed to demonstrate a specific feature or concept in Go, helping you to understand and apply them in your projects.

Topics Covered 📖

The following topics are covered in this repository:

  1. Hello World 🌍
  2. Values 🧮
  3. Variables 📊
  4. Constants 🚦
  5. For 🔄
  6. If/Else ❓
  7. Switch 🔀
  8. Arrays 🗃️
  9. Slices 🍰
  10. Maps 🗺️
  11. Range 🔁
  12. Functions 🔧
  13. Multiple Return Values 🔙
  14. Variadic Functions ➕
  15. Closures 🚪
  16. Recursion 🔄
  17. Pointers 🧷
  18. Strings and Runes ✍️
  19. Structs 🏗️
  20. Methods 🛠️
  21. Interfaces 🌐
  22. Enums 🔢
  23. Struct Embedding 🏗️
  24. Generics 💡
  25. Errors ❗
  26. Custom Errors ❗
  27. Goroutines 🧵
  28. Channels 📡
  29. Channel Buffering 📦
  30. Channel Synchronization 📶
  31. Channel Directions ↔️
  32. Select 🔀
  33. Timeouts ⏱️
  34. Non-Blocking Channel Operations 🛑
  35. Closing Channels 🚪
  36. Range over Channels 🔄
  37. Timers ⏲️
  38. Tickers ⏰
  39. Worker Pools 🏊
  40. WaitGroups ⏳
  41. Rate Limiting 🚦
  42. Atomic Counters 💣
  43. Mutexes 🔒
  44. Stateful Goroutines 🌐
  45. Sorting 📑
  46. Sorting by Functions 📂
  47. Panic ⚠️
  48. Defer ⏳
  49. Recover 💪
  50. String Functions ✨
  51. String Formatting 📝
  52. Text Templates 🖋️
  53. Regular Expressions 🔍
  54. JSON 📦
  55. XML 📄
  56. Time ⏰
  57. Epoch 🕰️
  58. Time Formatting / Parsing ⏲️
  59. Random Numbers 🎲
  60. Number Parsing 🔢
  61. URL Parsing 🌐
  62. SHA256 Hashes 🔒
  63. Base64 Encoding 🔐
  64. Reading Files 📖
  65. Writing Files ✍️
  66. Line Filters 🧹
  67. File Paths 🗂️
  68. Directories 📁
  69. Temporary Files and Directories 🗄️
  70. Embed Directive 📦
  71. Testing and Benchmarking 🧪
  72. Command-Line Arguments 💻
  73. Command-Line Flags 🚩
  74. Command-Line Subcommands 🔍
  75. Environment Variables 🌍
  76. Logging 📜
  77. HTTP Client 🌐
  78. HTTP Server 🌍
  79. Context 📚
  80. Spawning Processes 🛠️
  81. Exec'ing Processes 🏃
  82. Signals 🚨
  83. Exit 🚪

Getting Started 🚀

To get started with the examples, make sure you have Go installed on your machine. You can download and install Go from the official Go website.

Clone this repository to your local machine:

git clone https://github.com/gikenye/GoByExamples.git
cd GoByExample

Run the examples:

go run examples/hello-world.go

Examples

Each example is located in the examples directory. They are named according to the topics they cover. For instance, the hello-world.go example can be found in the examples directory.

Contributing 🤝

If you would like to contribute to this repository, feel free to fork the repository and submit a pull request. Please ensure your code follows the Go conventions and includes comments and documentation where necessary.

Contact 📬

If you have any questions or suggestions, feel free to reach out to me:

I am currently using Go By Example website to learn Go.

Happy coding! 🚀

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0