A collection of Go examples and implementations demonstrating various Go programming concepts, patterns, and real-world applications.
adder/
: Addition operation implementationgroundone/
: Basic Go programming exampleshandlers/
:websocket/
: WebSocket connection handling
interview/
: Common Go interview problem solutionsrandomstrgenerater/
: Random string generation utilitiesratelimiter/
: Rate limiting implementationrealtimechat/
: Real-time chat application implementationsafecounter/
: Thread-safe counter implementationtemplates/
: HTML templateschat.html
: Chat interface template
unbufferhandle/
: Unbuffered channel handling examplesutils/
: Utility functions and helpersworkerpool/
: Worker pool pattern implementation
- Go 1.23.4 (version specified in
go.mod
) - Docker (for containerization)
- Clone the repository
- Run:
$ go run main.go
or$ air
for hot reload
The project includes Docker support and can be deployed using Fly.io:
Dockerfile
: Container configurationfly.toml
: Fly.io deployment configuration
-
WebSocket Implementation
-
Rate Limiting
-
Thread-safe Operations
-
Worker Pool Pattern
-
Random String Generation
-
Interview Problem Solutions
-
Basic Go Concepts
See the LICENSE file for details.