Tagged articles
6 articles
Page 1 of 1
Code Wrench
Code Wrench
Jan 31, 2026 · Backend Development

Build a Fast, Concurrent, Single‑File Lottery System with Go

This article shows how to quickly create a fair, concurrent, single‑binary lottery system for a company event using Go's standard library, sync.RWMutex for thread safety, and the embed package to bundle static assets without any external dependencies.

GoHTTP serverLottery System
0 likes · 9 min read
Build a Fast, Concurrent, Single‑File Lottery System with Go
Go Programming World
Go Programming World
Jul 14, 2024 · Backend Development

Embedding Static Resources in Go with //go:embed

Since Go 1.16, the //go:embed directive allows developers to embed files, directories, or entire static assets directly into the compiled binary, simplifying deployment; this article explains the directive, its three embedding methods, usage in HTTP servers, unit tests, handling parent directories, and important considerations.

HTTP serverembedgo1.16
0 likes · 24 min read
Embedding Static Resources in Go with //go:embed